Re: [parisc-linux] [patch] Remove magic constant from gas/tc-hppa.c
Jeff Bailey <[email protected]>
| Newsgroups | gmane.comp.gnu.binutils,gmane.linux.ports.hppa |
|---|---|
| Message-ID | <[email protected]> |
Le dimanche 22 octobre 2006 à 22:14 -0400, John David Anglin a écrit :
> > > Yes, but it's wrong. I'm not worried about changing it since
> > > there isn't really a 64-bit netbsd target. Also, GCC doesn't
> > > support hppa64-netbsd.
> >
> > Fair enough. =) I've so far been trying to preserve behaviour. I'm
> > happy to change it to just elf64-hppa for now if that's better.
In exploring how other arches handle unifying 32 and 64 bit binutils, it
looks like they rely on a command line switch to get things set early
enough. output_file_create calls TARGET_FORMAT before the asm file is
read, so we can't use the .LEVEL instruction to tell is if we're
elf32-hppa or elf64-hppa.
It looks like the best thing to do is to support the -march parameter,
similar to gcc. gcc supports:
-march={1.0,1.1,2.0}
Should I add 2.0w to this for 64bit? Talking about it with Randolph on
IRC, he pointed out that hppa2.0w-hp-hpux11.11 targets a 32 bit
userspace on a wide kernel.
HP/UX as supports the syntax:
+DAarchitecture
But I'd rather stick with something that feels more like the rest of the
arches and toolchain.
Thanks!
--
Jeff Bailey - http://www.raspberryginger.com/jbailey/
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBFRLun5M5hmdCYCpkRAso5AKDOQaEKd3NRPWLXcpTs8Un6sI5rsACguXoV BU3LaPP61VG8ZbUkHbWJEHg= =xB0W -----END PGP SIGNATURE-----