diff --git a/external/gpl3/binutils/dist/ld/emultempl/elf32.em b/external/gpl3/binutils/dist/ld/emultempl/elf32.em index ac71f2d10efb..679e0b05d9fa 100644 --- a/external/gpl3/binutils/dist/ld/emultempl/elf32.em +++ b/external/gpl3/binutils/dist/ld/emultempl/elf32.em @@ -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`; }