Re: binutils-2.17.50.0.10+ hates hppa ?
Mike Frysinger <[email protected]>
| Newsgroups | gmane.linux.ports.hppa |
|---|---|
| Organization | wh0rd.org |
| Message-ID | <[email protected]> |
On Saturday 27 January 2007 11:13, John David Anglin wrote:
> > after upgrading from 2.17.50.0.9 to 2.17.50.0.10 (.11 too), ld seems
> > unable= to=20
> > do anything remotely basic ... is there something basic i'm missing here
> > ? = i=20
> > verified that it isnt caused by the Gentoo patchsets as a vanilla
> > build=20 exhibits the issue as well
>
> There's been very few hppa changes to binutils in the past several
> months. I can't duplicate the problem, so maybe there's something
> wrong with your libc setup.
no, one of the very few changes to the hppa bfd broke things ... it's writing
the ELF OS ABI field as HPUX instead of Linux and well, that doesnt go over
very well :)
here's the weird thing ... looking at bfd/elf32-hppa.c in binutils 2.17.50.0.
{10,11} doesnt seem to match the version actually in cvs ??
at any rate, attached patch applies against 2.17.50.0.10 and 2.17.50.0.11 and
fixes the issue for me
-mike
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
signature.asc
(application/pgp-signature, 827 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (GNU/Linux) iQIVAwUARbuSNkFjO5/oN/WBAQK28hAArb3NzCSaXw/QW7+DhxXE4OrLKDs2Ojx0 99Pb4iCOPplnTRs3Slw2MDBoelrMWjCe6S/d8k5A6bPuej66h2jjzRSgAZjPEW3l IjWhNuvQSDm4YA+9mdTsjd5iv730l3Y37nOr9AwqMOZHBiPF/Bdwu9BekOxrLysT WeFbyywXq3dwehZZ0/boaV8M+2bLIMor4x5q/aT50chdrem0mdXM1IluXDiVaiuD s3+oTowmyQq0fURww7Y6mNHdud/lJCW8HCbuCY4zlIYuPJppPSV//maX9Hsd4kEJ W25FVFDOd9tAzmHd0a2+S5P5ZwLDthOMyLH9kMIJ4Ryr+s2Q+LpOdUPXDF08otKA qhK5DsbGZxKJmGM2JLAL/y3JrOz5XZrBQWvQMGsaBRXCNbttabePeiGkYgfVhLIh 6q5oAW38bjyeq03S3iCzjeBwp0p8adb9Q3xFerBeI0otQKp9E9nv2FCEEnDbr1rY CRmkoUPL4mKfx7bfBvNiqyK7JhYbn/wh4BMKuzMY1thHLimTY2OkHPjBbs4qCt9n 2G+4gfveMr6jajBUdd/+6er82FfaP0fakhMiov2GLOSv0vpfBLOOdpNnNYc/gK3o vdCDDmMj4A/kXIBSItLTaZ70Pg3Wo1hFPgbFYbV9V2VflLz+sha4Nhlq606Hd5Il dwZNSEY302Y= =El7V -----END PGP SIGNATURE-----
binutils-hppa32-bfd-bed.patch
(text/x-diff, 910 B)
2007-01-27 Mike Frysinger <[email protected]> * 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"