From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9A5E9384B11C; Wed, 24 Apr 2024 18:01:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A5E9384B11C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713981689; bh=fCOt017OOhGK4GScZmveO9WdZHLUvCrcgBfXfQcZkxE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Muli7col9ItBmgLe23W4UTta8Wkw+2x6GpfoDy2zuD0Rk6evBb2cJa3MXowpzMcjs MPQGwt93HLX3UGEftk/y+h068gxa+t5SZRdLLzPb2EYLCjDPqcAKO+j9pGntV0FCeu iMeobeHh5MRrutqV5FXT79KeDOzGBug5bkCEtzTY= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114839] g++-linked FreeBSD static binaries abort upon exception Date: Wed, 24 Apr 2024 18:01:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114839 --- Comment #2 from Andrew Pinski --- Hmm, I wonder why freebsd needs to be different from every most other targe= ts though here: ``` config/alpha/elf.h:#define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hd= r} " config/arc/linux.h:#define LINK_EH_SPEC "--eh-frame-hdr " config/dragonfly.h:#define LINK_EH_SPEC "--eh-frame-hdr" config/freebsd.h:#define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr}= " config/fuchsia.h: "%{!no-eh-frame-hdr: --eh-frame-hdr}" \ config/gnu-user.h:#define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr= } " config/netbsd.h:#define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr} " config/openbsd.h:#define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr}= " config/sol2.h: --eh-frame-hdr to create the required .eh_frame_hdr sectio= ns.=20 */ config/sol2.h:#define LINK_EH_SPEC "%{!static|static-pie:--eh-frame-hdr} " ``` Is it the case that unwinder from LLVM needs a .eh_frame_hdr for static binaries while GCC's libgcc one does not?=