author | Rich Felker <dalias@aerifal.cx> | 2018年04月16日 20:12:12 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018年04月17日 19:23:00 -0400 |
commit | b9410061e2ad6fe91bb3910c3adc7d4a315b7ce9 (patch) | |
tree | a651e123b301644c513cc5a79ca46d19b89680c7 /configure | |
parent | 4bf0717e5141518c1d34ac84253d3973be1fa260 (diff) | |
download | musl-b9410061e2ad6fe91bb3910c3adc7d4a315b7ce9.tar.gz |
-rwxr-xr-x | configure | 10 |
@@ -590,10 +590,12 @@ tryldflag LDFLAGS_AUTO -Wl,--no-undefined # versions built without shared library support and pcc are broken. tryldflag LDFLAGS_AUTO -Wl,--exclude-libs=ALL -# Linking with -Bsymbolic-functions is no longer mandatory for -# the dynamic linker to work, but enable it if it works as -# a linking optimization. -tryldflag LDFLAGS_AUTO -Wl,-Bsymbolic-functions +# Public data symbols must be interposable to allow for copy +# relocations, but otherwise we want to bind symbols at libc link +# time to eliminate startup relocations and PLT overhead. Use +# --dynamic-list rather than -Bsymbolic-functions for greater +# control over what symbols are left unbound. +tryldflag LDFLAGS_AUTO -Wl,--dynamic-list="$srcdir/dynamic.list" # Find compiler runtime library test -z "$LIBCC" && tryldflag LIBCC -lgcc && tryldflag LIBCC -lgcc_eh |