PR 9798
authorAlan Modra <amodra@gmail.com>
Thu, 29 Jan 2009 13:03:21 +0000 (13:03 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 29 Jan 2009 13:03:21 +0000 (13:03 +0000)
commit8d8e0703f44b4fe58cb3e7ded5d337a3c868d3e2
tree193080b9cc783ada710b34f34ba4cea406d469d8
parentfdfde340537dfac5eec37e75399069cb76717c0c
PR 9798
* bucomm.c (bfd_nonfatal_message): Use bfd_get_archive_filename.
(bfd_get_archive_filename): Constify param.
* bucomm.h (bfd_get_archive_filename): Update prototype.
* objcopy.c (RETURN_NONFATAL): Delete.
(copy_unknown_object): Don't call bfd_get_archive_filename for
bfd_nonfatal_message filename, instead just pass bfd.
(copy_object): Likewise.
(copy_archive, copy_file): Likewise.  Expand RETURN_NONFATAL.  On
bfd_close errors, do not pass the bfd to bfd_nonfatal_message.
(setup_bfd_headers): Fix error message.
binutils/ChangeLog
binutils/bucomm.c
binutils/bucomm.h
binutils/objcopy.c