Module Name:    src
Committed By:   joerg
Date:           Fri Oct 25 14:28:29 UTC 2013

Modified Files:
        src/external/gpl3/binutils/dist/ld/emultempl: elf32.em

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 \
    src/external/gpl3/binutils/dist/ld/emultempl/elf32.em

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/ld/emultempl/elf32.em
diff -u src/external/gpl3/binutils/dist/ld/emultempl/elf32.em:1.7 src/external/gpl3/binutils/dist/ld/emultempl/elf32.em:1.8
--- src/external/gpl3/binutils/dist/ld/emultempl/elf32.em:1.7	Sun Sep 29 14:03:31 2013
+++ src/external/gpl3/binutils/dist/ld/emultempl/elf32.em	Fri Oct 25 14:28:28 2013
@@ -103,6 +103,7 @@ gld${EMULATION_NAME}_before_parse (void)
 {
   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`;
 }

Reply via email to