From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp001-out.apm-internet.net (smtp001-out.apm-internet.net [85.119.248.222]) by sourceware.org (Postfix) with ESMTPS id DB11F398301E for ; Fri, 2 Jul 2021 14:51:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DB11F398301E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sandoe.co.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=sandoe.co.uk Received: (qmail 39711 invoked from network); 2 Jul 2021 14:51:49 -0000 X-APM-Out-ID: 16252375093970 X-APM-Authkey: 257869/1(257869/1) 2 Received: from unknown (HELO ?192.168.1.214?) (81.138.1.83) by smtp001.apm-internet.net with SMTP; 2 Jul 2021 14:51:49 -0000 From: Iain Sandoe Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: [pushed] Darwin, BTF: Provide a suitable section name for BTF [PR101283]. Message-Id: Date: Fri, 2 Jul 2021 15:51:48 +0100 To: GCC Patches X-Mailer: Apple Mail (2.3445.104.21) X-Spam-Status: No, score=-16.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_COUK, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2021 14:51:52 -0000 Hi, In a similar manner to r12-1960-gcc8453012f75d, this provides a placeholder section name for BTF data. This change groups BTF and CTF debug formats in the same segment, but keeps them in separate sections. As per the CTF section designation, this should be agreed or amended to an agreed form before GCC 12 ships. tested on x86_64-darwin17 and 18 (m32 and m64) pushed to master, thanks Iain Signed-off-by: Iain Sandoe PR debug/101283 - Several tests fail on Darwin with -gctf/gbtf PR debug/101283 gcc/ChangeLog: * config/darwin.h (CTF_INFO_SECTION_NAME): Update the segment to include BTF. (BTF_INFO_SECTION_NAME): New. --- gcc/config/darwin.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index b7c3af3b3fa..6840aebe794 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -1115,8 +1115,10 @@ extern void darwin_driver_init (unsigned int = *,struct cl_decoded_option **); # endif #endif =20 -/* CTF support. */ +/* CTF and BTF support. */ #undef CTF_INFO_SECTION_NAME -#define CTF_INFO_SECTION_NAME "__CTF,__ctf,regular,debug" +#define CTF_INFO_SECTION_NAME "__CTF_BTF,__ctf,regular,debug" +#undef BTF_INFO_SECTION_NAME +#define BTF_INFO_SECTION_NAME "__CTF_BTF,__btf,regular,debug" =20 #endif /* CONFIG_DARWIN_H */ --=20 2.24.1