This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Fix elf_object_p
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Cc: amodra at bigpond dot net dot au
- Date: Tue, 12 Nov 2002 14:53:40 -0800
- Subject: PATCH: Fix elf_object_p
Alan, I checked in this patch to fix your patch
http://sources.redhat.com/ml/binutils/2002-11/msg00355.html
which has another problem:
* elfcode.h (elf_object_p): Use bfd_preserve_save/restore/finish.
(elf_core_file_p): Likewise.
elf_core_file_p is in elfcore.h and you didn't check in the change.
H.J.
--
2002-11-13 H.J. Lu <hjl@gnu.org>
* elfcode.h (elf_object_p): Don't restore abfd->arch_info.
--- bfd/elfcode.h.preserve Tue Nov 12 09:53:56 2002
+++ bfd/elfcode.h Tue Nov 12 14:40:55 2002
@@ -841,7 +841,6 @@ elf_object_p (abfd)
bfd_set_error (bfd_error_wrong_format);
got_no_match:
- abfd->arch_info = preserve.arch_info;
if (preserve.marker != NULL)
bfd_preserve_restore (abfd, &preserve);
return NULL;