This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]