From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id 52C6D385770A for ; Mon, 24 Jul 2023 15:55:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 52C6D385770A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 63AB4FEC; Mon, 24 Jul 2023 08:55:51 -0700 (PDT) Received: from localhost (e121540-lin.manchester.arm.com [10.32.110.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BD76F3F5A1; Mon, 24 Jul 2023 08:55:07 -0700 (PDT) From: Richard Sandiford To: Andrew Pinski via Gcc-patches Mail-Followup-To: Andrew Pinski via Gcc-patches ,Andrew Pinski , richard.sandiford@arm.com Cc: Andrew Pinski Subject: Re: [PATCH 2/2] AARCH64: Turn off unwind tables for crtbeginT.o References: <20230723010645.1622083-1-apinski@marvell.com> <20230723010645.1622083-2-apinski@marvell.com> Date: Mon, 24 Jul 2023 16:55:06 +0100 In-Reply-To: <20230723010645.1622083-2-apinski@marvell.com> (Andrew Pinski via Gcc-patches's message of "Sat, 22 Jul 2023 18:06:45 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-20.5 required=5.0 tests=BAYES_00,KAM_DMARC_NONE,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Andrew Pinski via Gcc-patches writes: > The problem -fasynchronous-unwind-tables is on by default for aarch64 > We need turn it off for crt*.o because it would make __EH_FRAME_BEGIN__ point > to .eh_frame data from crtbeginT.o instead of the user-defined object > during static linking. Could you go into more details? Which user-defined object do you mean? I notice alpha has: # When GAS-generated unwind tables are created, they get created # after the __FRAME_END__ terminator, which causes an ld error. CRTSTUFF_T_CFLAGS = -fno-unwind-tables which I guess was a separate problem. Thanks, Richard