litecross: force gcc to use init/fini arrays

I overlooked that GCC was not doing this by default for musl, since
binutils ld automatically converts the .ctors/.dtors GCC emits to
init/fini arrays at link time. unfortunately lld does not do the same,
so without --enable-initfini-array, GCC produces object files that lld
will mislink unless it was configured with support for legacy GCC
ctors.
This commit is contained in:
Rich Felker 2021-07-09 12:33:39 -04:00
parent 5b405688ee
commit 3398364d6e
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ FULL_GCC_CONFIG = --enable-languages=c,c++ \
--disable-libmudflap --disable-libsanitizer \
--disable-gnu-indirect-function \
--disable-libmpx \
--enable-initfini-array \
--enable-libstdcxx-time=rt
FULL_MUSL_CONFIG = $(MUSL_CONFIG) \