Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp649384ybs; Sun, 24 May 2020 17:01:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFL8r3W0gSFIAax81VTl6PgDs6Xp4InEriCVdK1kW390A0w4SG4pnxMo5JLBH7Bo9ccAN4 X-Received: by 2002:a17:906:415b:: with SMTP id l27mr17472047ejk.240.1590364916284; Sun, 24 May 2020 17:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590364916; cv=none; d=google.com; s=arc-20160816; b=e/syAiJ/qBUnIsqCHdaOnc2P9jDbIzVwV4w6wxoeJItjNGwp1tkyRMPK6qmXO6sO1C cGAce7ms8TAV5s0XQdvSpBRM1eJj91RaC5hMqkToihhjz/OseNNneLamBDOwnA+O8yhj 7k3rbbb4OojoQ5vXn9uuuNBGNChWEwtd1V/0S3dftw+4sFWntuNNuNccX2kQNHwwXIHb /58v9DnowS5FhhkTELu9t1bChOU+iUOrNmyPnnTir+B/sSUXzzoSqohPoEjFdFOHnIoA NMxzzS4bsrTpisBa07TWBtPgSBfPVt9ApZpgWpKn9g/jiXyM9aPWqnVCTb1tmiQ7OXhH d10Q== 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=X1mIyAkwbgWoxrz90REt4fG4bY063H1i6zQ27Un6aao=; b=uelaNS+KUKhXwVPzU/Ne/i9ZrH7C80EsszaVAJ1ckZN7QZjdJ53ofzNC5bozQ4PpQ1 JXO/m4gHiOKCKzakhzN11hCHSXCRLIOcYYlXTBIvY63PJnpHvbmeewlp4RuB+AwRGzzx GkN8Oc1OFunAL6DJAXPkBsV5dcQdAvenZWPD6qRpNl140iUMBeyz6iyK81ZkXXQ2r16n iiqZT6WtP7wzgDU1KZOa6LkuDIxeRSDvM3K72e0hFC9flobUbMxyNW2Tw+JQTqJBmolj YuOSKWHyYFcfWLIaKyhvVSwbYbfU7UqV5+DESJ62c7JkVoaTS6RuTK8an51WJV7dclYO Bq4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=mi1T6Zts; 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 d11si9042498edn.129.2020.05.24.17.01.33; Sun, 24 May 2020 17:01:56 -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=mi1T6Zts; 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 S2388300AbgEXX7B (ORCPT + 99 others); Sun, 24 May 2020 19:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388149AbgEXX7A (ORCPT ); Sun, 24 May 2020 19:59:00 -0400 Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3B62C061A0E for ; Sun, 24 May 2020 16:58:59 -0700 (PDT) Received: by mail-qt1-x842.google.com with SMTP id e16so6866405qtg.0 for ; Sun, 24 May 2020 16:58:59 -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=X1mIyAkwbgWoxrz90REt4fG4bY063H1i6zQ27Un6aao=; b=mi1T6ZtsPlzDI7d/PdTXk4g8yQZEgVkLNKOEnFBZihPx6fpvuA8BvsSHJbrcknvSAX z5E4IhiN9r9b699JVm0os30Sco7Y1fzQdSt1ASba9x6IwpaRGb9XAPTto9TcVXsJxxbp vG81GEguGTYbe2C9EqaZ6mDZbi9f0pUTRuJlBzExybQG5L9NYdzIlm71MzWVG/XIe9Hm U2Nw9LOwzh47smCgn2QQzpjd3/rlNnTqtBAozPx6c510c8BAumkWHBTzzATEo6WiVhef N+qIHE0drnc+mdIQOA1yVDR0AHbiCr8tftA7FF93pmcU/Wl7o+Dia5xrDy7aPjazFdUL g08w== 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=X1mIyAkwbgWoxrz90REt4fG4bY063H1i6zQ27Un6aao=; b=HpUkqrj62LMxvHkENUlQTc6/iqvGdcU1yUQPTTOSQ5Y7uD/1c0CFAdMao9r65Wi1il ZCn/w11QLKs/liNAPgRwmi9ktn95qTtv9UJP1mDlFcNIwNNpdQmnp/IUpwkx+VCypxQl 90slUxVPRnT/ostxXuQ/DmJsFmv2/b6haWo+n3lU2jyL1PjX1UN4lyB3iCUBJg3Zq1Fb NqeqShc/3npgD6XlW8MmHo6eBr1YvF2HAF4EwjIGmiZ9sBf6D8QIVGmRWuc/J0Kvy0d+ ktxbUvxVYnzmWQWo06NCqgusPPFDasdTaJDH23WfzKjqCcy+BaTPEKyjIHTVngMxIrRD aVSg== X-Gm-Message-State: AOAM530MrKbU3imUJvWo4Da9NoWPbi0XXizFCPCMlI1dgQnkRKGtO35b j93pjy5G2P83eUA/YCugdtc= X-Received: by 2002:ac8:6a1a:: with SMTP id t26mr24668127qtr.331.1590364738911; Sun, 24 May 2020 16:58:58 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id u3sm14638550qtk.63.2020.05.24.16.58.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 May 2020 16:58:58 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Sun, 24 May 2020 19:58:56 -0400 To: Fangrui Song Cc: Arvind Sankar , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Nick Desaulniers , Dmitry Golovin , clang-built-linux@googlegroups.com, Ard Biesheuvel , Masahiro Yamada , Daniel Kiper , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] x86/boot: Remove runtime relocations from head_{32,64}.S Message-ID: <20200524235856.GD280334@rani.riverdale.lan> References: <20200524212816.243139-4-nivedita@alum.mit.edu> <20200524232214.i7rfpdzoam6tpt6n@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200524232214.i7rfpdzoam6tpt6n@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 24, 2020 at 04:22:14PM -0700, Fangrui Song wrote: > > Probably worth mentioning that this works around GNU ld<2.35 Thanks, I'll add that in v2. > > > This commit fixing https://sourceware.org/bugzilla/show_bug.cgi?id=25754 > also fixed the bug. (Just verified that both 2.24 and 2.34 have the bug. binutils-gdb HEAD (future 2.35) is good.) > > % cat a.s > pushl $z_input_len > % cat b.s > .globl z_input_len > z_input_len = 0xb612 > % gcc -m32 -c a.s b.s > % ld.bfd -m elf_i386 -pie a.o b.o # has an incorrect R_386_RELATIVE before binutils 2.35 > > > Reviewed-by: Fangrui Song