summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-05-18 01:20:02 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-05-18 01:20:02 +0000
commit96fd004e0e5d1b9981bdf2207a4adf7b4f21e038 (patch)
treef1a209a7aaafc8243562ddb6170d17d8bc13825b
parent736d0890a9cee610492c37b707eca3f41301a16e (diff)
downloadbinutils-gdb-96fd004e0e5d1b9981bdf2207a4adf7b4f21e038.tar.gz
2001-05-17 H.J. Lu <hjl@gnu.org>
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the version definition to basename of the output filename.
-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 575003d1f14..3cccafc3294 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2001-05-17 H.J. Lu <hjl@gnu.org>
+ * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
+ version definition to basename of the output filename.
+
+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.
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 329c5224674..b2f04fa990f 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -3130,7 +3130,7 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
const char *name;
bfd_size_type indx;
- name = output_bfd->filename;
+ name = basename (output_bfd->filename);
def.vd_hash = bfd_elf_hash (name);
indx = _bfd_stringtab_add (elf_hash_table (info)->dynstr,
name, true, false);