diff options
author | Nick Clifton <nickc@redhat.com> | 2014-01-02 12:14:37 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2014-01-02 12:14:37 +0000 |
commit | 1be5090bcaf4bcab333cf03f4157b16d33881222 (patch) | |
tree | ceb44d7963da8d56f0a3253a0cba36c4830daead /bfd/archive.c | |
parent | e2359dfd4dd0f24cdb30886ed547c27a86813469 (diff) | |
download | gdb-1be5090bcaf4bcab333cf03f4157b16d33881222.zip gdb-1be5090bcaf4bcab333cf03f4157b16d33881222.tar.gz gdb-1be5090bcaf4bcab333cf03f4157b16d33881222.tar.bz2 |
PR binutils/11983
* archive.c (_bfd_get_elt_at_filepos): Store a copy of the
filename in the bfd's filename field.
* elfcode.h (bfd_from_remote_memory): Likewise.
* ieee.c (ieee_object_p): Likewise.
* mach-o.c (bfd_mach_o_fat_member_init): Likewise.
* oasys.c (oasys_openr_next_archived_file): Likewise.
* vms-lib.c (_bfd_vms_lib_get_module): Likewise.
* opncls.c (bfd_fopen): Likewise.
(bfd_openstreamr): Likewise.
(bfd_openr_iovec): Likewise.
(bfd_openw): Likewise.
(bfd_create): Likewise.
(_bfd_delete_bfd): Free filename.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r-- | bfd/archive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/archive.c b/bfd/archive.c index 32b07a7..dc39751 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -705,7 +705,7 @@ _bfd_get_elt_at_filepos (bfd *archive, file_ptr filepos) else { n_nfd->origin = n_nfd->proxy_origin; - n_nfd->filename = filename; + n_nfd->filename = xstrdup (filename); } n_nfd->arelt_data = new_areldata; |