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/ieee.c | |
parent | daily update (diff) | |
download | binutils-gdb-1be5090bcaf4bcab333cf03f4157b16d33881222.tar.gz binutils-gdb-1be5090bcaf4bcab333cf03f4157b16d33881222.tar.bz2 binutils-gdb-1be5090bcaf4bcab333cf03f4157b16d33881222.zip |
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/ieee.c')
-rw-r--r-- | bfd/ieee.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bfd/ieee.c b/bfd/ieee.c index b93fdeb87b4..e1734ec3d28 100644 --- a/bfd/ieee.c +++ b/bfd/ieee.c @@ -1,7 +1,5 @@ /* BFD back-end for ieee-695 objects. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 - Free Software Foundation, Inc. + Copyright 1990-2013 Free Software Foundation, Inc. Written by Steve Chamberlain of Cygnus Support. @@ -35,6 +33,7 @@ #include "ieee.h" #include "libieee.h" #include "safe-ctype.h" +#include "libiberty.h" struct output_buffer_struct { @@ -1824,7 +1823,7 @@ ieee_object_p (bfd *abfd) goto got_wrong_format; ieee->mb.module_name = read_id (&(ieee->h)); if (abfd->filename == (const char *) NULL) - abfd->filename = ieee->mb.module_name; + abfd->filename = xstrdup (ieee->mb.module_name); /* Determine the architecture and machine type of the object file. */ { |