From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mR8j9-0006mx-LO for mharc-grub-devel@gnu.org; Fri, 17 Sep 2021 03:56:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39470) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mR8j7-0006dL-BD for grub-devel@gnu.org; Fri, 17 Sep 2021 03:56:05 -0400 Received: from de-smtp-delivery-102.mimecast.com ([194.104.111.102]:33195) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mR8it-0000Vo-MC for grub-devel@gnu.org; Fri, 17 Sep 2021 03:56:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1631865349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=f4mACNuueCv/CvLl2+TokUopgMkHVjjRtWayq1j4O/I=; b=Nlxbavx32e+10uHaFuTMIZAvcTTDH36OuElGt/Nm/pCoEnWlRSfYbM65h+7jXXdz5dpCUA A8VV1EUtYz0kmFaT/aQf12KGzl7OfPunRsF1yCrlvTj2y5elwlm3UDeHJvJBEXizQT3UVt n8OxyZwMiQgbJXYmxYh0ji/C4IUL1w8= Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-am5eur03lp2055.outbound.protection.outlook.com [104.47.8.55]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-14-TDtqTAhxPh2JgxdMlWXyKw-1; Fri, 17 Sep 2021 09:55:48 +0200 X-MC-Unique: TDtqTAhxPh2JgxdMlWXyKw-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nEtm1FxrywCtebG3fWuFZ4lIfV3u2/QnstvUuqW/kA+JxmZ4oxSWhnLOrgZcP0KU7GsyW4PgbPSogh1Yes4YO/G6BlOXg5aC+cGPySlil1kvBnHqAsiQMgtVYgVFstZlwrRz2CZCLi3hvNEjqdov4uW/7ZeKnXJT5hzetdMRe44rRYYeTVMM7QV0A2kms63OkzGkc49bs03PQQY2sDOMp5D2GCUjL0qZqBIG9/pCGFcEL6U03xFW9gs9KbkEtNwg1knhtzHhvM3L066b39OcgwZm5XoIQdlhjtQVH038ZGK9aL55ULHwcGQ1g8YWDbCphJ48Sal2omqzsvOEQzF1Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=f4mACNuueCv/CvLl2+TokUopgMkHVjjRtWayq1j4O/I=; b=d0ALEJ10e6i1Pnjwkj2+fhBHn1EQYd+80QMaG7UehABuv2E0pngHqQ+VKI4PQNrlsyiosN4GkTrp6ini0bTxwoaQUSrG46SNtvLZzPb9BUHLoDpjfL0INurb8+dB4B0fbM6mU99mnBRc2J5xBNVWXbs8hRWJFxv83JMXFKWlpSUnsfsCpIx5+/bfHWhnliAEp6Mr1QznsRDBuT4J5LN+wphaDBGeaV/cqvVM99z68DnIJ/qOpaEEFiDmvWK7driO0aZp8AdwkbMMQdXWTrxE+L9SOcri/HV5JQc8ZhRmc3Wd4KOcda2e/E1DAxCyGZDjezAQGmmnwVwfMZhimt+MGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Authentication-Results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=suse.com; Received: from DU2PR04MB8648.eurprd04.prod.outlook.com (2603:10a6:10:2df::21) by DU2PR04MB8872.eurprd04.prod.outlook.com (2603:10a6:10:2e3::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.16; Fri, 17 Sep 2021 07:55:48 +0000 Received: from DU2PR04MB8648.eurprd04.prod.outlook.com ([fe80::7c78:3729:f82b:6802]) by DU2PR04MB8648.eurprd04.prod.outlook.com ([fe80::7c78:3729:f82b:6802%6]) with mapi id 15.20.4523.017; Fri, 17 Sep 2021 07:55:48 +0000 Date: Fri, 17 Sep 2021 15:55:42 +0800 From: Michael Chang To: The development of GNU GRUB Subject: Re: [PATCH] Fix build error in binutils 2.36 Message-ID: <20210917075542.GB8348@mazu> References: <20210802094115.19377-1-mchang@suse.com> <20210805130721.ajskggdw6ma6emzj@tomti.i.net-space.pl> <20210809043759.GA13488@mercury> <20210916214757.qm7iu6ozrb5bk45g@tomti.i.net-space.pl> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210916214757.qm7iu6ozrb5bk45g@tomti.i.net-space.pl> User-Agent: Mutt/1.10.1 (2018-07-13) X-ClientProxiedBy: HK2PR03CA0056.apcprd03.prod.outlook.com (2603:1096:202:17::26) To DU2PR04MB8648.eurprd04.prod.outlook.com (2603:10a6:10:2df::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (2001:b011:30d0:3f43:6600:6aff:fe77:a7be) by HK2PR03CA0056.apcprd03.prod.outlook.com (2603:1096:202:17::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.9 via Frontend Transport; Fri, 17 Sep 2021 07:55:47 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5454a8f1-38f4-4dfc-b68d-08d979b08f72 X-MS-TrafficTypeDiagnostic: DU2PR04MB8872: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qzrHnaMUJ9XSQ30ZUGqvE/yus4XDaBhlY/dqPX86EZDxnzM9IqrQhFgMHWyQdxyfMgVXmmAiwunqfzhclQz8E0GRq3xlRJFH9XoquWe7GSbo4upumlRiDPQfZyXjijdUMFNb1zTWlnqlvTjheXOdHK08dS/ttfpGTgH5uuwBW2QgP5BR5qgZgs5FffHMZ3y8VZceSSIgaJcslKCcbsP+GTfErX26TmiZ9Kw9YkryQP9LkIsHJKwV+qV8rwWUpzSs4k7+SQybAYVocfTtxkT2PgVdx6cWWmkaexMW616NfcS+McUUSdckObMR423V5Kzk8huDJz3B39Nq4IXdUXNRNUERVqZe8M+YUCYEHAxvUedvOaKzr9kgeFpbfBi6H3b3RjA9kAW2COsVyXaJVRuLp3ULsk4ZvKSJK2MU1/o8nIV0+Fg/x9b7m8Lcb6jS4WCb/idVzfE6a7Qjz3fZjXc1VytcRwZxC2+X3CFg44AUW/KoF/0ubukKldEcb9xuqSbhmL4W/8vMIuLGsroJ81E3B4cXwFaQ6okBInVdYS4gobM7vKZYO9/PlR+c9FQNMeJO/lWteRouxG9Uta36HuCbseRDmdNrc2Y+TQO+UqGSZKBKn0D2M3kntGuFFCvSQplqS0MfwtKs+V5aOoYZE1wd5EkNlz/vc3EIqH2M6iaicHtAQi7FZjV0264THSPVCTen/osSSK+KfvIAXB88vySODbOafmP98oXQRNQUV9q4Sar8DrQNyEFz9yQ1E041RfP2KRMo32t0WM0ZM9ChRW/UANtlHZ2YGgoea9U5xnXvhVZp13/wg4uBSndmDb2LoJLz X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU2PR04MB8648.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(7916004)(346002)(376002)(366004)(136003)(396003)(39860400002)(6666004)(66946007)(6486002)(66556008)(66476007)(5660300002)(966005)(6916009)(33656002)(9686003)(83380400001)(186003)(33716001)(1076003)(8936002)(8676002)(316002)(6496006)(478600001)(2906002)(38100700002)(86362001)(2004002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?lfVzYf9XNc/K7SvNbbPxcSWTYSVijxun72x9zZ+lW9U2pxcCVAV0XPn9L9xV?= =?us-ascii?Q?KW7TUc1K9+wydbZOdzuOhJZETs6KQ1lcRv30Eu36S8Qq7WOl0VidH6dJrTaB?= =?us-ascii?Q?M4MT/Byx7+77u74iC1TII00UuLkX4nxfiPgx+ksca5rhlkpADHfx+XKG9GWq?= =?us-ascii?Q?WWYORYd2g/1ffvQQzL39uXG+99VJX7sYlcPWTaUtgFx2tFj9e8euXmfuH6AF?= =?us-ascii?Q?TaAJiKJi1rCPezOiNeYWA6Ag4gKDxYt1nB8n0fZnRgAnTnm0lVNkRl86j0Cm?= =?us-ascii?Q?An1Heaz6QSRcQDQHgDsiK4UOM5QXX5J8HCxTBh72ICK+VwXNeELiWU4trJc0?= =?us-ascii?Q?O9vzlpfAhtZYheCGH6rLuFBZcdIa3I5Upler4eIn0s9ADUr98Ock9mi9jUN/?= =?us-ascii?Q?frJ1TmRyNHSREQLGfABQq4sF7LYq0yw398RFTLnVpurANhKZmYTODz5Iv/jb?= =?us-ascii?Q?8vaao9UPuCreju138vm9A5Tj4LSh7muSY2LTPV+3QLJIARcYkhfvZPZiF7Eq?= =?us-ascii?Q?IZI40B9OCedLeCsYr+4//ZewiirxQJaYlzi1oVe7YeJVKtEa46AA2MDQTiui?= =?us-ascii?Q?z6etulSrKYCK8uOxuzhz0afDMq9VQAi7+ZmDkHiaDxo+2VmaAOHL3XzNOV9E?= =?us-ascii?Q?nr+pzdMqT1cOBXyqaAA74rh0dL0sOhLbJLtLKxMUm0dvAovnQLvuAO/jEOfP?= =?us-ascii?Q?CA/wHSibdIOEbyEdQpH3Twn1ICyB2so/FSBUp51UUR/TXmte0qnMz2xEX9B9?= =?us-ascii?Q?NGtTCH/28Ie2SPTPPacgWf60hVgwFIKmzumkmYRs5gIBVtX7qgPGjLh4WM6c?= =?us-ascii?Q?fqyOsdokRgf02s/scVzmev1x06Mx05u3hI2wtZ/Q3f1aILupyTz2/VDCmKAa?= =?us-ascii?Q?sw0NuEr8s/HJ9Az9m2XoheFX3llMt43iPuLe7KOD/+RC9xciR9Fm1llyIbgI?= =?us-ascii?Q?OiIyPghKiZPNnTQihTAjbt88TCdkp3VGl1le4vVOuRuy9TBJQbXH+U19Bh3K?= =?us-ascii?Q?HVjXaE1PevrkZO2EPWQnn+/DBw/04H7wJb6kJ1mngNeCnfvTu73vL4THvjS/?= =?us-ascii?Q?DIC5dhZjleXf+Witu3AEqf1TrBlN5DygWw3BpKVBf9eolt0DA2wbSC/i9VMg?= =?us-ascii?Q?a+sK6Q56w+QQXF8VA6HxfbKqQE41ZTjjcW7vZS+eLOQFX2ENxePTPDCN5SJ3?= =?us-ascii?Q?lWBsr+gt/P4CpH3O+iLSnUfNeV899+/uJfeMip5Cw9hcMVm3/mtG43a8Q2ta?= =?us-ascii?Q?IHkwT0Bq/Dvx7TXQW06fS0QviUGkkj7ePmCWUIM6NogETecPRwd4bTLb3B8I?= =?us-ascii?Q?B3dPjqnfUccSwnlOMnzhcdUg+ehbgAO+YDnLeQVNApdZGRlkU2G0bLbehQ4o?= =?us-ascii?Q?suJwbuu7BewwusMGGpzGHb3RNEXv?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5454a8f1-38f4-4dfc-b68d-08d979b08f72 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8648.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2021 07:55:47.8516 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0RNAlOQ9ZRoN50reL4Yp36p2WXnKweiBq74/Z8+eLWeYecmTo+rWoCVztBjevvzL X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8872 Received-SPF: pass client-ip=194.104.111.102; envelope-from=mchang@suse.com; helo=de-smtp-delivery-102.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2021 07:56:05 -0000 On Thu, Sep 16, 2021 at 11:47:57PM +0200, Daniel Kiper wrote: > On Mon, Aug 09, 2021 at 12:37:59PM +0800, Michael Chang via Grub-devel wrote: > > On Thu, Aug 05, 2021 at 03:07:21PM +0200, Daniel Kiper wrote: > > > On Mon, Aug 02, 2021 at 05:41:15PM +0800, Michael Chang via Grub-devel wrote: > > > > The xen build fails on binutils 2.36 with the following error. > > > > > > > > /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: > > > > section .note.gnu.property VMA [0000000000400158,0000000000400187] > > > > overlaps section .bss VMA [000000000000f000,000000000041e1af] > > > > > > Could you send us full command which is failing? > > > > It is reproducible on xen platfrom with all defaults. > > > > git clone https://git.savannah.gnu.org/git/grub.git > > cd grub > > ./bootstrap > > mkdir build-xen > > cd build-xen > > ../configure --with-platform=xen > > make > > > > > Anyway, I would consider writing our own linker script which is dropping > > > .note.gnu.property if we do not need it. > > > > Dropping it from the assembler output is a cleaner cleanup than linker > > script IMHO. We also faced similar issue in the past to stripping off > > this section from soruces of objcopy to produce correct binary. > > > > 6643507ce build: Fix GRUB i386-pc build with Ubuntu gcc > > > > To avoid falling into such trap again when manipulating on object files > > we'd better use assmbler option as the fix once and for all. > > May I ask you to expand commit message with the information above? Sure. No problem. > > > > > The most significant factor is that new assembler (gnu as) generates the > > > > > > Could you give us gas version which does that? > > > > # as --version > > GNU assembler (GNU Binutils; openSUSE Tumbleweed) 2.36.1.20210326-4 > > Copyright (C) 2021 Free Software Foundation, Inc. > > This program is free software; you may redistribute it under the terms of > > the GNU General Public License version 3 or later. > > This program has absolutely no warranty. > > This assembler was configured for a target of `x86_64-suse-linux'. > > > > > > .note.gnu.property section as default. This note section overlaps with > > > > .bss because it doesn't reposition with -Wl,-Ttext,0 with which the base > > > > address of .text section is set, rather the address of > > > > .note.gnu.property is calculated for some reason from 0x400000 where the > > > > elf executable defaults to start. > > > > > > Is not it linker bug? > > > > The binutils upstream apparently doesn't seem to consider this as a bug ... > > > > https://sourceware.org/bugzilla/show_bug.cgi?id=27377 > > Please add this information and the link to the bug to the commit message too. > Additionally, I think it is worth mentioning Gentoo Linux bug [1] in it. OK. I'll add the suggested information and refernce to next version. > > I treat this patch more as a workaround than real fix. However, after digging > deeper into this issue I think we do not have better choice here... :-( I feel likewise. It is no sliver bullet but can help us back on track and move on. Thanks, Michael > > Daniel > > [1] https://bugs.gentoo.org/787221 > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel