diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-05-17 19:08:46 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-05-17 19:08:46 +0000 |
commit | f3876d8bc6b619b3fc066d2c80a78502cb074cf3 (patch) | |
tree | 718989b6173ac998c64d0bd21d21e1564aca8b82 /bfd | |
parent | a577b05c322261facf38c95ad0d0966c6e42ec1b (diff) | |
download | gdb-f3876d8bc6b619b3fc066d2c80a78502cb074cf3.zip gdb-f3876d8bc6b619b3fc066d2c80a78502cb074cf3.tar.gz gdb-f3876d8bc6b619b3fc066d2c80a78502cb074cf3.tar.bz2 |
2001-05-17 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
basename of the bfd filename.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elflink.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 85a6b13..575003d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2001-05-17 H.J. Lu <hjl@gnu.org> + + * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to + basename of the bfd filename. + 2001-05-16 Alan Modra <amodra@one.net.au> * section.c (asection): Add linker_has_input field. diff --git a/bfd/elflink.h b/bfd/elflink.h index af7dac2..329c522 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -1095,7 +1095,7 @@ elf_link_add_object_symbols (abfd, info) elf_dt_name, we don't make a DT_NEEDED entry at all, even if there is a DT_SONAME entry. */ add_needed = true; - name = bfd_get_filename (abfd); + name = basename (bfd_get_filename (abfd)); if (elf_dt_name (abfd) != NULL) { name = elf_dt_name (abfd); |