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] | |
On Thursday 04 January 2007 14:47, H. J. Lu wrote:
> * elf32-hppa.c (elf32_hppa_post_process_headers): Removed.
> (elf_backend_post_process_headers): Defined with
> _bfd_elf_set_osabi.
> (ELF_OSABI): Properly defined for each target.
unfortunately, this trashes the linux/netbsd hppa ports ... 2.17.50.0.10 and
2.17.50.0.11 in particular
the tail end of the file doesnt reset elf_bed so the HPUX settings are
retained when generating the code to handle linux and netbsd which quickly
leads to it hitting the fan ;)
attached patch fixes things for me with 2.17.50.0.{10,11}
-mike
Attachment:
pgp00000.pgp
Description: PGP signature
2007-01-27 Mike Frysinger <vapier@gentoo.org> * elf32-hppa.c [elf32_bed]: Define for hpux, linux, and netbsd. [INCLUDED_TARGET_FILE]: Remove. --- binutils-2.17.50.0.10/bfd/elf32-hppa.c +++ binutils-2.17.50.0.10/bfd/elf32-hppa.c @@ -4656,6 +4656,7 @@ #define ELF_MACHINE_CODE EM_PARISC #define ELF_MAXPAGESIZE 0x1000 #define ELF_OSABI ELFOSABI_HPUX +#define elf32_bed elf32_hppa_hpux_bed #include "elf32-target.h" @@ -4665,8 +4666,9 @@ #define TARGET_BIG_NAME "elf32-hppa-linux" #undef ELF_OSABI #define ELF_OSABI ELFOSABI_LINUX +#undef elf32_bed +#define elf32_bed elf32_hppa_linux_bed -#define INCLUDED_TARGET_FILE 1 #include "elf32-target.h" #undef TARGET_BIG_SYM @@ -4675,5 +4677,7 @@ #define TARGET_BIG_NAME "elf32-hppa-netbsd" #undef ELF_OSABI #define ELF_OSABI ELFOSABI_NETBSD +#undef elf32_bed +#define elf32_bed elf32_hppa_netbsd_bed #include "elf32-target.h"
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |