Recursively add DT_NEEDED entries from shared libraries if symbols are
used indirectly. This is more in line with the old GNU ld behavior, but not exactly the desired semantic. Patch from Martin Husemann.
This commit is contained in:
parent
2b2120bf58
commit
a07180c32d
|
@ -103,6 +103,7 @@ gld${EMULATION_NAME}_before_parse (void)
|
||||||
{
|
{
|
||||||
ldfile_set_output_arch ("${OUTPUT_ARCH}", bfd_arch_`echo ${ARCH} | sed -e 's/:.*//'`);
|
ldfile_set_output_arch ("${OUTPUT_ARCH}", bfd_arch_`echo ${ARCH} | sed -e 's/:.*//'`);
|
||||||
input_flags.dynamic = ${DYNAMIC_LINK-TRUE};
|
input_flags.dynamic = ${DYNAMIC_LINK-TRUE};
|
||||||
|
input_flags.add_DT_NEEDED_for_dynamic = TRUE;
|
||||||
config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`;
|
config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`;
|
||||||
config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
|
config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue