[Bug 278551] lang/gcc: exceptions do not work in statically linked binaries

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 24 Apr 2024 17:51:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278551

--- Comment #9 from Ed Maste <emaste@freebsd.org> ---
from g++13 -dumpspecs it looks like --eh-frame-header is not included for
statically linked binaries

*link:
%{!static|static-pie:--eh-frame-hdr}   %{m32:-m elf_i386_fbsd}%{!m32:-m
elf_x86_64_fbsd}   %{p:%nconsider using '-pg' instead of '-p' with gprof(1)}  
%{v:-V}   %{assert*} %{R*} %{rpath*} %{defsym*}   %{shared:-Bshareable %{h*}
%{soname*}}     %{!shared:       %{!static:         %{rdynamic:-export-dynamic}
    -dynamic-linker %(fbsd_dynamic_linker) }     %{static:-Bstatic}}  
%{symbolic:-Bsymbolic}

I've opened a GCC bug for this:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114839

-- 
You are receiving this mail because:
You are the assignee for the bug.