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 Apply elf32.em r1.8...



details:   https://anonhg.NetBSD.org/src/rev/23058641e910
branches:  trunk
changeset: 806359:23058641e910
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Feb 18 15:05:43 2015 +0000

description:
Apply elf32.em r1.8 to the corresponding sections of armelf.em and
aarch64elf.em. Original commit 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.

diffstat:

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

diffs (22 lines):

diff -r 33a41eea239a -r 23058641e910 external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em
--- a/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em    Wed Feb 18 11:15:19 2015 +0000
+++ b/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em    Wed Feb 18 15:05:43 2015 +0000
@@ -38,6 +38,7 @@
   ldfile_set_output_arch ("`echo ${ARCH}`", bfd_arch_unknown);
 #endif /* not TARGET_ */
   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`;
 }
diff -r 33a41eea239a -r 23058641e910 external/gpl3/binutils/dist/ld/emultempl/armelf.em
--- a/external/gpl3/binutils/dist/ld/emultempl/armelf.em        Wed Feb 18 11:15:19 2015 +0000
+++ b/external/gpl3/binutils/dist/ld/emultempl/armelf.em        Wed Feb 18 15:05:43 2015 +0000
@@ -51,6 +51,7 @@
   ldfile_set_output_arch ("`echo ${ARCH}`", bfd_arch_unknown);
 #endif /* not TARGET_ */
   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