Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp586916ybm; Wed, 27 May 2020 03:05:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdV8YYI7VYal67Hnuquo6q0ChAayiHmL8Dy7hN25WgLx9aM/5Eqb+STEoEocrf27AdrzuA X-Received: by 2002:a17:906:944e:: with SMTP id z14mr5091622ejx.86.1590573923618; Wed, 27 May 2020 03:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590573923; cv=none; d=google.com; s=arc-20160816; b=r5Ha3EGgA1JwzVsTBs1XsxN+mt1LjmZ9qHalS+jbDcel6FW3d6CTP4TWN9U9V4OmGK UXstOUM1VmqB2WkmFjq7v5JVLseBVuMCs98woCsaEEFVK5KlV3WpxG3c2tYWtBwUbvAX r55COP1vofxYC50AkbyqNC6H+okMaymhS7R4iEYX7PtK5a/0dtjxTyKthZ0XyX5cxwvo wJFDSOy4BQqPz4CbG3PVEyaj3EiGGbxYGcJB9yMhgFmh/jbL/YevQK4DJLKQe6PWdIPa gX1zfdpt4M460gWFF+CiT/zUTcpjtTFVED6mcT+G0Zfu2amPxly46uCDTFMsVAYGP63U mdpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=UaQWC80bUQjBJzc1DayNRE/WdGTjwPnpDlHQt30J1Qg=; b=GuuJL10UKmjnhKoi0nAQZ8oPa5KwWm/6Y+nxxAkE8Q0z25n6hWPSLZYG78gBmsrEpH qTiuvccHZADtDU+B5GS/0K4aCGiglqorCE3owqUFeSeM+rNpzM7/ThqrXyTiNSFJ6c0N pEphcunI4q4nJMQmy3iZwrksCCbQPW/EYKTzfpMR9rKw122APKE/m6Rw6Y65DEkAzDav qJQ/fOqUwmNxSxNR6B26Jr/VajH1BhVGRji0qa0La+C1iP974ErkfMug5LWuwWUD3wOv e16G3u9gNuWaCmLMKhvMtPqfA3nijlDRuNIErnrCQ4RnBwV06jCO+73VUGCrRi8ALSIc S8SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="DimA/hyo"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l26si1621950ejx.390.2020.05.27.03.04.59; Wed, 27 May 2020 03:05:23 -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=pass header.i=@gmail.com header.s=20161025 header.b="DimA/hyo"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728571AbgE0G1C (ORCPT + 99 others); Wed, 27 May 2020 02:27:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728003AbgE0G1B (ORCPT ); Wed, 27 May 2020 02:27:01 -0400 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56B00C061A0F for ; Tue, 26 May 2020 23:27:00 -0700 (PDT) Received: by mail-io1-xd42.google.com with SMTP id k18so24787696ion.0 for ; Tue, 26 May 2020 23:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=UaQWC80bUQjBJzc1DayNRE/WdGTjwPnpDlHQt30J1Qg=; b=DimA/hyoueYC7BmZmiD49l88h+/5JhgPL+ls7+Qbz2z5d9zHwxY7L/AhmGvhNErWy/ mz4ljIz+OjbnadbD/IG72IyWf8ldryGcGBKmTcv0ZF55xB5j/XhuB9f57/ga51ak8mov XGazcvH07XbpMvH6Sc4AGfKXMcTBzuaDAgDpZg9f1xRQSOb8uhGuEJpXE5yFCdi2KhwL OgqJ3+md7zGSvezgWg8/74vqprrbduoOp8xetvV3MVc3yZyWDILxFEuAIXJKLX0FK9+g 98gIcev75v2M9Gf7Vsoyer0HnNb8sWT15mDT3pKth0lodLofzHeZhYliVoNhvuRSTatN gLAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=UaQWC80bUQjBJzc1DayNRE/WdGTjwPnpDlHQt30J1Qg=; b=d60C/tITHGBJ81SV3NE5U86JW8zmvymIuHIpnjrGnCeBUhqohRHoJks+ohXSXo9tkt XaETYJd7SrHveMA6M1kY7ydMM9t7SwQE4NmQu5r62ieQV6XdYg0MHCAg40JcUkizDWYu g7IemyTsa9siDgmQN4frxFxb6EdmOSVELJqILI0c7GuwREJGDk1KcFu6N95a+uvXfikP z0ieA9obGtvnHj1nrt/O8LddAuNdLkQFnCgymgcm3UpR3YdqKyEalQuU2vX1QjtvATo8 MnXQaWrHP5ayoXoU7meWrjRI6I4KAOjdweOAz/Ue+A0OWqZvtKYoM9U9mQH5MLZZSj2I 0j8g== X-Gm-Message-State: AOAM533Vqvdy0t8XnPrias/Kl0/Jq3ItjFrdXGV1oTggag8lFzmmBZgc gupfc0lVP+oL/K2YOXn0xPD2J86FixZnLrGUmUU= X-Received: by 2002:a6b:750c:: with SMTP id l12mr20476776ioh.66.1590560819743; Tue, 26 May 2020 23:26:59 -0700 (PDT) MIME-Version: 1.0 References: <20200524212816.243139-1-nivedita@alum.mit.edu> <20200525225918.1624470-1-nivedita@alum.mit.edu> <20200526144748.GA2190602@rani.riverdale.lan> <20200526153636.GD2190602@rani.riverdale.lan> In-Reply-To: <20200526153636.GD2190602@rani.riverdale.lan> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Wed, 27 May 2020 08:26:50 +0200 Message-ID: Subject: Re: [PATCH v2 0/4] x86/boot: Remove runtime relocations from compressed kernel To: Arvind Sankar Cc: 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 Content-Type: text/plain; charset="UTF-8" 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 5:36 PM Arvind Sankar wrote: > > 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. > Do you plan a change on this? - Sedat -