]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgcc: On FreeBSD use GCC's crt objects for static linking
authorDimitry Andric <dimitry@andric.com>
Tue, 28 Jan 2025 17:36:16 +0000 (18:36 +0100)
committerGerald Pfeifer <gerald@pfeifer.com>
Sat, 8 Feb 2025 16:36:36 +0000 (17:36 +0100)
commit06e5b0b4a244090abfea333d91fc5963292cb41d
tree110580882399cbe904be600ba4f925f5d67d47f9
parent6312165650091a4df34668d8e2aaa0bbc4008a66
libgcc: On FreeBSD use GCC's crt objects for static linking

Add crtbeginT.o to extra_parts on FreeBSD. This ensures we use GCC's
crt objects for static linking. Otherwise it could mix crtbeginT.o
from the base system with libgcc's crtend.o, possibly leading to
segfaults.

libgcc:
PR target/118685
* config.host (*-*-freebsd*): Add crtbeginT.o to extra_parts.

Signed-off-by: Dimitry Andric <dimitry@andric.com>
libgcc/config.host