2001-05-17 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 18 May 2001 01:20:02 +0000 (01:20 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 18 May 2001 01:20:02 +0000 (01:20 +0000)
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
version definition to basename of the output filename.

bfd/ChangeLog
bfd/elflink.h

index 575003d..3cccafc 100644 (file)
@@ -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.
 
index 329c522..b2f04fa 100644 (file)
@@ -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);