This is the mail archive of the binutils@sourceware.org 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]

Re: PATCH: PR binutils/3826: elf_object_p can't tell freebsd object file from standard ELF object file


On Sat, Jan 27, 2007 at 05:52:25PM -0500, John David Anglin wrote:
> > attached patch fixes things for me with 2.17.50.0.{10,11}
> 
> I installed the appended change.  Tested on hppa-unknown-linux-gnu
> with no regressions.  I checked that readelf correctly recognized
> the ELF_OSABI for an object file on this target.
> 
> Note, HJL's proposed change isn't installed on the CVS head.
> 

You also need this one.

H.J.
----
2076-01-27  H.J. Lu  <hongjiu.lu@intel.com>

	* elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.

--- bfd/elf64-hppa.c.bed	2006-10-22 11:44:54.000000000 -0700
+++ bfd/elf64-hppa.c	2007-01-27 17:55:21.000000000 -0800
@@ -2866,12 +2866,15 @@ const struct elf_size_info hppa64_elf_si
 #define elf_backend_action_discarded	elf_hppa_action_discarded
 #define elf_backend_section_from_phdr   elf64_hppa_section_from_phdr
 
+#define elf64_bed			elf64_hppa_hpux_bed
+
 #include "elf64-target.h"
 
 #undef TARGET_BIG_SYM
 #define TARGET_BIG_SYM			bfd_elf64_hppa_linux_vec
 #undef TARGET_BIG_NAME
 #define TARGET_BIG_NAME			"elf64-hppa-linux"
+#undef elf64_bed
+#define elf64_bed			elf64_hppa_linux_bed
 
-#define INCLUDED_TARGET_FILE 1
 #include "elf64-target.h"


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