aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-05-14 13:49:42 +0000
committerMark Kettenis <kettenis@gnu.org>2005-05-14 13:49:42 +0000
commit060848126d7a6e1b103d80a1a52162449d970560 (patch)
treea917746bbed2db3ee12731f496f26e4ca39f2bcb /bfd
parente1613abaaade5a830fee697e04d73570d5a36f58 (diff)
downloadgdb-060848126d7a6e1b103d80a1a52162449d970560.zip
gdb-060848126d7a6e1b103d80a1a52162449d970560.tar.gz
gdb-060848126d7a6e1b103d80a1a52162449d970560.tar.bz2
* elflink.c (bfd_elf_size_dynamic_sections): Use lbasename instead
of basename.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e53946e..6617832 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-14 Mark Kettenis <kettenis@gnu.org>
+
+ * elflink.c (bfd_elf_size_dynamic_sections): Use lbasename instead
+ of basename.
+
2005-05-14 Alan Modra <amodra@bigpond.net.au>
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Set DT_PPC_GOT,
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 5c5fb2d..793918b 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -5377,7 +5377,7 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd,
{
bfd_size_type indx;
- name = basename (output_bfd->filename);
+ name = lbasename (output_bfd->filename);
def.vd_hash = bfd_elf_hash (name);
indx = _bfd_elf_strtab_add (elf_hash_table (info)->dynstr,
name, FALSE);
@@ -5600,7 +5600,7 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd,
indx = _bfd_elf_strtab_add (elf_hash_table (info)->dynstr,
elf_dt_name (t->vn_bfd) != NULL
? elf_dt_name (t->vn_bfd)
- : basename (t->vn_bfd->filename),
+ : lbasename (t->vn_bfd->filename),
FALSE);
if (indx == (bfd_size_type) -1)
return FALSE;