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 575003d1f141b73dc874f3fc4116ef777662ed5d..3cccafc3294e5fc4833751286c27491a069aefac 100644 (file)
@@ -1,3 +1,8 @@
+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
index 329c52246744d88f6c2e6c7c8f9943ae5e8e11c4..b2f04fa990f37f1e5c6b78ff337dca859d45b8d6 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);