Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp266234ybs; Tue, 26 May 2020 08:41:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPMTKIMuOLsTAUfpNwMB7FhBdJPyAMdxj5lJNTyoCw4v9h4VB7lpTuM3/PO37Lop0dm0E7 X-Received: by 2002:a05:6402:1586:: with SMTP id c6mr21333670edv.54.1590507710755; Tue, 26 May 2020 08:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590507710; cv=none; d=google.com; s=arc-20160816; b=WdppZEUWmkw4zD84bmmBdMKNcRb3yRUMuCMD/sv1CpvjdnHkVqn5B9gxouzbwukujx 7NL7oxQf2ndBZHp/fXXTJ0g3jsxkNbX3JFCiH6Al0zZbCZTDH5QlVWgg8CZHZ2F/JcTb YUjLKaBZTULLfP/TRl8teFGNSNChQdDKpjUB7qpYRHoJSpvFnYzHm7LAb4NJeLx8UwRL XVD7sG6hWwFfeDnG/2oN1uu4tztZSMWMZE5fEf7iKXyuzKRxIXGHo5wBENwxBlG5ezbX rrqK+G5BI/SBJrVZtxbMXNHZAsJJ3wJs7sib1pGnxFZVoTddsXvRjZZ7PJGmQ3J6SVQ+ VjZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=0kOaEeDNNDbr5A18fELJn1A8SP35RyFdZgGb0lfoRlU=; b=onII5/iRYqgU9BucTeqTfu/2PNNOfQVxfyYUkP0clkOsdXPdyvrxszWXmy3Kvq3t74 rRC4i2guBtEhuIrL+Hg8CTznIspRloid2VboHZ4oFm0lWnn67kGdGaxx055kQxiYmBl2 O5qS3X6EVMX6Ao2g7I/R1uzQieepHKEq4G6ML9QM/Yw/lmrkhKV7yc4vgtJQ0YgZdgkF qIyCb75ZXXczf7p91RltZ9BapPeQmao7AWabqmwbYeIUhMWvg4sfB2O8Itsq6g/0bE5U ++fqoczbSbslTniTXAhtCDEIpMVvVNTxqWtxJ6rhmmyAMP8DRt2aK2jB+ArKja4NnVLq R9Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=nDx1rAuA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c59si98983edd.430.2020.05.26.08.41.24; Tue, 26 May 2020 08:41:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=nDx1rAuA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388061AbgEZPgl (ORCPT + 99 others); Tue, 26 May 2020 11:36:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727898AbgEZPgk (ORCPT ); Tue, 26 May 2020 11:36:40 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 148ADC03E96D for ; Tue, 26 May 2020 08:36:40 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id w3so15465086qkb.6 for ; Tue, 26 May 2020 08:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=0kOaEeDNNDbr5A18fELJn1A8SP35RyFdZgGb0lfoRlU=; b=nDx1rAuAahvdyIagOM6nr9EhhZhs3kHHpZUQxuiAGyC9v14GLtvEKO+QG+yEblcUiB i78CzO4Ud1CSb+8Hi8B6XtnL6obi/o9t7l59Q9hIcbctV4nodflZcSa1mW2Zg8sOi0VC 3wv+6+qhLkD8aaInYPadLCMluxU9MZFS0hLrz3XYgrMzLhJszQSk/HDsfoNYBwZPEFWI 0RVPxpCdyu/ia5MbpF4j84bclZjDBm0BWSr9KKVJyDUv0NT5UaZIDBUm1SOBomeutC0V P68/hHC+XUkgvtCnRWfMPd+EuipzLK7hL9IHINil9tdYnJEzzo45EPBxVbF24QGUsVcX lCzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=0kOaEeDNNDbr5A18fELJn1A8SP35RyFdZgGb0lfoRlU=; b=nfb6VkVAfp01W44fnLAEKF4Aq6RusaZWzwJSClzphOzc3w1Ro1We7qxx6NwiW97d0L dE5qNcchxgB+ND3YunTGcrk6LgVrroV+3BEyzlpC5/qaWIsn8qO9Jp4bT8d0lz9wiS6Q 5tB+zLzlmoKkuDpY776UYyyz7ANnmSPbBAz7NTYS10QMha7dc4vlBWmtAN57rgsdbZld si7Nig24Jzok9LpTbCV27zv/elt/MyMROU9XjFu0n4MEP7hRFu/bWgfYTFwnjO4wjgfw jJ9whKL+RY5UggJLCy6juckHsQ14EC8TMf3KxYrN1NR8M6RNu/qftCeGjzpgT33EBoDu 2saw== X-Gm-Message-State: AOAM533o4rhqazmeHydlxG15JB20kWduIalLJ3YfQXNCDr//Gip3aMWN exFVRd8CMtMcbmEjAdck7JY= X-Received: by 2002:a37:dce:: with SMTP id 197mr2023209qkn.250.1590507399282; Tue, 26 May 2020 08:36:39 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id d5sm4784878qkj.64.2020.05.26.08.36.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 08:36:38 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Tue, 26 May 2020 11:36:36 -0400 To: Sedat Dilek Cc: Arvind Sankar , Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , X86 ML , Nick Desaulniers , Fangrui Song , Dmitry Golovin , Clang-Built-Linux ML , Masahiro Yamada , Daniel Kiper , Linux Kernel Mailing List Subject: Re: [PATCH v2 0/4] x86/boot: Remove runtime relocations from compressed kernel Message-ID: <20200526153636.GD2190602@rani.riverdale.lan> References: <20200524212816.243139-1-nivedita@alum.mit.edu> <20200525225918.1624470-1-nivedita@alum.mit.edu> <20200526144748.GA2190602@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 26, 2020 at 04:50:38PM +0200, Sedat Dilek wrote: > On Tue, May 26, 2020 at 4:47 PM Arvind Sankar wrote: > > > > On Tue, May 26, 2020 at 02:44:29PM +0200, Sedat Dilek wrote: > > > > > > Are those diffs correct when using "x86/boot: Correct relocation > > > destination on old linkers"? > > > > > > > It looks ok, but that patch (and even marking the other symbols .hidden) > > should be unnecessary after this series. > > You mean _bss, _ebss and _end? > > - Sedat - Yes. Those .hidden markings are there to ensure that when relocations are generated (as they are currently), they're generated as R_386_RELATIVE (which uses B+A calculation, with A being the link-time virtual address of the symbol, and stored in the relocation field) rather than R_386_32 (which uses S+A calculation, and so doesn't work without runtime processing). After this patchset there aren't any relocations, so while the .hidden markings won't hurt, they won't be necessary either.