https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113403

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Florian Weimer from comment #2)
> Weak symbols have no meaning for ELF DSOs, so this wouldn't work for
> libgcc_s on ELF targets. Instead we automatically link against dynamic
> libgcc_s if certain symbols not in libgcc.a are referenced. Sources built
> with -ftrampoline-impl=heap -fexceptions can already trigger such a
> dependency for _Unwind_Resume because it's used in the cleanup handler, for
> example.

What we could do is make -shared-libgcc the default when using
-ftrampoline-impl=heap (similarly how linking with g++ instead of gcc makes it
the default), obviously unless use explicitly asks for -static-libgcc or
-shared-libgcc.

Reply via email to