Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1140279ybl; Fri, 10 Jan 2020 12:52:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzKtqmh3bTXBCbPSBYlTz88L2vChkWiu8d8+MEHhKvje76cMNgigunqYtMBlHRsJkSkxYxF X-Received: by 2002:a9d:2c68:: with SMTP id f95mr4274675otb.33.1578689539106; Fri, 10 Jan 2020 12:52:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578689539; cv=none; d=google.com; s=arc-20160816; b=yrTVreuR/s4IXxU+VHbsA0qej5xZElb798NukCEujqhyh7FGHnt8ofKsx1uAXCvMI+ PH4dikUzcBzhBkDSL7MOBPfz0NylCIy9VqNbxYpA1xwvHPr1cxW94yz4uaBfF7ODMUcX 3xBF3ewc8xH/By9J/vDuqXThhcKQ4hcvCLr/ClRu8OeXC4b2s/NbRn3pp2gXQ8LuHJcO SiOFr5iryXWYvZajmCOAxYIYZd5PQca+gVaAoN48Aexw+zrx/dugTUeKVB3g9jb8gbEx Z8kk3hh59YeU3FJatROboMcZfKg3szAAsJgqenBc0tahLjl16h3EtVv183YBiWub6IGV VbNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=g27tUcZAM0m6OZxjmAB5/89iWSwTrYsxjjfNa7EsAIw=; b=QpUZI9U9cuWNpE9h8tYjhzOBIHgLFDOIo79JAHWeyr5OA2FbinqsUBdOwDH5+HY4qJ O7u92uFZTfpGrBFRaC/09bIgDHwuVFtROEw+FA+58GIb4ym1iTEssFu8kp7jzLJNQ1gr o5CgIFuO07SKleAdqY/o3VeuOsstQxh9+tLiODAB7b1u7DdgoguS2pgjdVcKemjgxZOs glAVQldfdBRFAORI9eyLEMzcPFUcoBZ3zmJo2Xd7BzW597PNNDKG+0ur2Dn6jBuriDKD QXu/KwK37e6dgyEFjXEvnDF82pjyK3m6E+sYhC/sRh7rTe6alLqMBin6hNWqeyuc4WHd iLZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Mvi+VRY0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si1974050otn.150.2020.01.10.12.52.07; Fri, 10 Jan 2020 12:52:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Mvi+VRY0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726788AbgAJUuc (ORCPT + 99 others); Fri, 10 Jan 2020 15:50:32 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:38480 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726723AbgAJUuc (ORCPT ); Fri, 10 Jan 2020 15:50:32 -0500 Received: by mail-qt1-f195.google.com with SMTP id n15so3181384qtp.5 for ; Fri, 10 Jan 2020 12:50:31 -0800 (PST) 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:user-agent; bh=g27tUcZAM0m6OZxjmAB5/89iWSwTrYsxjjfNa7EsAIw=; b=Mvi+VRY02DgdYL7P2WspKpHxV2ow+FLMGmUO3lyIPBdZ6kcdG6O4HVFlGhiG+9nKjt InGoNRuwiCuSQd5Ve3eiX2lfKUyZ87lrH9ALeiXGOnxgfGdiTLaU5zwdubcqXTvcsLB0 DaO/pmhX8VxVvIadinKoWa7kOkB9Y64ByED2qL3Trpztbdo8u8X1ZMDq09q8IOvJth8y JUo+juVQDjNuS4t09NlmvyPVYzae8sKRlSErb7153ubjzUQblJgGvPUjil5E1HJc4/pq jW9fCiAhtgCiQ6Tyz4WmdQy+Ys1/hKYm3kCXGXfKxq3N7A12MUCJoUIZzD0CCKSH0wj8 WOPw== 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:user-agent; bh=g27tUcZAM0m6OZxjmAB5/89iWSwTrYsxjjfNa7EsAIw=; b=JQM9gtW8PkhWS1ojwVNODiOWHTZ1cwciLBuiC4Q0fs2HP6KucemgC50C37jTi9DhI/ XlGk5nZd2unOmJw1cUKgEq9XfUJ7/yjTfX0wfRoaozhYSVjIWUq814YMrKHrivFiEK1w JJdjGxy/Vf2SLrrE+Svix2VKCb9msRi52fNvU1oKi6yft7mw/T+Zy61Jp0fnvntk1GZS Owf98Qm6D+u3b2ueTMUpMJJDIUmbdJmEFMIg3zDbuEF06m60rZ22utMqY0clZK++d22D 0f1ZzOETsI2bjJxsYe4Y8yOQxv5zGBDGgEZjRvLMuTFqAATEIw+8czk76VEiJhRPMHYD at+g== X-Gm-Message-State: APjAAAVYS0wcTNHnP8uAACgSI/j1kH579tY8q8+7D2Bi0KxVrk8drqZQ MgN1ZEzo2mTnY+eXwbZWaa8= X-Received: by 2002:ac8:3853:: with SMTP id r19mr351185qtb.69.1578689431302; Fri, 10 Jan 2020 12:50:31 -0800 (PST) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id e3sm1586608qtb.65.2020.01.10.12.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jan 2020 12:50:30 -0800 (PST) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Fri, 10 Jan 2020 15:50:29 -0500 To: Borislav Petkov Cc: Arvind Sankar , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, Kees Cook , Thomas Lendacky Subject: Re: [PATCH] x86/tools/relocs: Add _etext and __end_of_kernel_reserve to S_REL Message-ID: <20200110205028.GA2012059@rani.riverdale.lan> References: <20200110202349.1881840-1-nivedita@alum.mit.edu> <20200110203828.GK19453@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200110203828.GK19453@zn.tnic> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 10, 2020 at 09:38:28PM +0100, Borislav Petkov wrote: > On Fri, Jan 10, 2020 at 03:23:49PM -0500, Arvind Sankar wrote: > > Pre-2.23 binutils makes symbols defined outside sections absolute, so > > these two symbols break the build on old linkers. > > -ENOTENOUGHINFO > > Which old linkers, how exactly do they break the build, etc etc? > > Please give exact reproduction steps. > > Thx. > binutils-2.21 and -2.22. An x86-64 defconfig will fail with Invalid absolute R_X86_64_32S relocation: _etext and after fixing that one, with Invalid absolute R_X86_64_32S relocation: __end_of_kernel_reserve Similar errors with 32-bit defconfig. Should I resend with that added to the commit message?