mirror of
https://github.com/richfelker/musl-cross-make.git
synced 2025-08-01 05:53:24 +02:00

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.