diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-05-03 06:18:09 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-05-03 06:18:09 +0000 |
commit | 210ba1e83d46204c1c1afaa6bb91b83c8186608d (patch) | |
tree | 32fa7e8ca72f64b47ebba21216f90a77668dde7b /bfd | |
parent | b274749094a9c6308250a5e2f31a7fe92b122a47 (diff) | |
download | fsf-binutils-gdb-210ba1e83d46204c1c1afaa6bb91b83c8186608d.zip fsf-binutils-gdb-210ba1e83d46204c1c1afaa6bb91b83c8186608d.tar.gz fsf-binutils-gdb-210ba1e83d46204c1c1afaa6bb91b83c8186608d.tar.bz2 |
2001-05-03 H.J. Lu <hjl@gnu.org>
* elfcode.h: Include "libiberty.h".
* elflink.h (elf_link_add_object_symbols): Set
elf_dt_name (abfd) to basename of the bfd filename.
(NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
of the bfd filename.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 9 | ||||
-rw-r--r-- | bfd/elfcode.h | 1 | ||||
-rw-r--r-- | bfd/elflink.h | 5 |
3 files changed, 13 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 209d7da1..85055bf 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +2001-05-03 H.J. Lu <hjl@gnu.org> + + * elfcode.h: Include "libiberty.h". + + * elflink.h (elf_link_add_object_symbols): Set + elf_dt_name (abfd) to basename of the bfd filename. + (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename + of the bfd filename. + 2001-05-03 Andreas Jaeger <aj@suse.de> * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute. diff --git a/bfd/elfcode.h b/bfd/elfcode.h index 4984896..c5e9821 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -66,6 +66,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "bfd.h" #include "sysdep.h" +#include "libiberty.h" #include "bfdlink.h" #include "libbfd.h" #include "elf-bfd.h" diff --git a/bfd/elflink.h b/bfd/elflink.h index 4973ae3..6c442dd 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -1322,7 +1322,7 @@ elf_link_add_object_symbols (abfd, info) /* Save the SONAME, if there is one, because sometimes the linker emulation code will need to know it. */ if (*name == '\0') - name = bfd_get_filename (abfd); + name = basename (bfd_get_filename (abfd)); elf_dt_name (abfd) = name; } @@ -3317,7 +3317,8 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath, true, false); else indx = _bfd_stringtab_add (elf_hash_table (info)->dynstr, - t->vn_bfd->filename, true, false); + basename (t->vn_bfd->filename), + true, false); if (indx == (bfd_size_type) -1) return false; t->vn_file = indx; |