From: H.J. Lu Date: Thu, 20 Jul 2000 03:17:32 +0000 (+0000) Subject: 2000-07-19 H.J. Lu X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=49e56c493d447e01ddb915b2612b5542ec6af044;p=deliverable%2Fbinutils-gdb.git 2000-07-19 H.J. Lu * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call bfd_elf_set_dt_needed_soname (). --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 0b661b562f..db29663912 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2000-07-19 H.J. Lu + + * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call + bfd_elf_set_dt_needed_soname (). + 2000-07-18 DJ Delorie * pe-dll.c (pe_dll_id_target): check object target name also diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 7a9c8822fd..3cdb856861 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -532,6 +532,18 @@ cat >>e${EMULATION_NAME}.c <filename, '/'); + if (name) + name++; + else + name = abfd->filename; + + /* Tell the ELF backend that the output file needs a DT_NEEDED + entry for this file if it is used to resolve the reference in + a regular object. */ + bfd_elf_set_dt_needed_soname (abfd, name); + /* Add this file into the symbol table. */ if (! bfd_link_add_symbols (abfd, &link_info)) einfo ("%F%B: could not read symbols: %E\n", abfd);