summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2001-05-17 19:08:46 +0000
committerH.J. Lu <hjl@lucon.org>2001-05-17 19:08:46 +0000
commit2eef145275190e2c75423ce1950b41ea74b9b44c (patch)
treeee60a7a67e70ee55749e81430b2551d2873fae82 /bfd
parent2f0e4427ca0f8f7fb305700fedb3db291da3f9e3 (diff)
downloadgdb-2eef145275190e2c75423ce1950b41ea74b9b44c.tar.gz
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/ChangeLog5
-rw-r--r--bfd/elflink.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 85a6b1380dd..575003d1f14 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 af7dac2737f..329c5224674 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);