Current-Users archive

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

Re: link problems



On Thu, Oct 10, 2013 at 06:42:54PM +0200, Martin Husemann wrote:
> You are right, but I can't find the initialization ;-)

It is a bit hidden, but I think the patch below should do it - modulo
the open question what defaults exactly we want changed.

Joerg, do you mean to enable add_DT_NEEDED_for_regular as well by default?
Do we have some simple test case for the whole issue?

Martin
Index: emultempl/elf32.em
===================================================================
RCS file: /cvsroot/src/external/gpl3/binutils/dist/ld/emultempl/elf32.em,v
retrieving revision 1.7
diff -u -r1.7 elf32.em
--- emultempl/elf32.em  29 Sep 2013 14:03:31 -0000      1.7
+++ emultempl/elf32.em  11 Oct 2013 08:09:55 -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