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.
This commit is contained in:
parent
b274749094
commit
210ba1e83d
3 changed files with 13 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue