Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/ld/emultempl Recursively add DT_...



details:   https://anonhg.NetBSD.org/src/rev/ae676c354f1a
branches:  trunk
changeset: 790855:ae676c354f1a
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Oct 25 14:28:28 2013 +0000

description:
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.

diffstat:

 external/gpl3/binutils/dist/ld/emultempl/elf32.em |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 89a47edf3582 -r ae676c354f1a external/gpl3/binutils/dist/ld/emultempl/elf32.em
--- a/external/gpl3/binutils/dist/ld/emultempl/elf32.em Fri Oct 25 14:23:15 2013 +0000
+++ b/external/gpl3/binutils/dist/ld/emultempl/elf32.em Fri Oct 25 14:28:28 2013 +0000
@@ -103,6 +103,7 @@
 {
   ldfile_set_output_arch ("${OUTPUT_ARCH}", bfd_arch_`echo ${ARCH} | sed -e 's/:.*//'`);
   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.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
 }



Home | Main Index | Thread Index | Old Index