[PATCH/RFA] Simplify GP handling for hppa-netbsd

Jason Thorpe thorpej@wasabisystems.com
Wed Jul 21 04:56:00 GMT 2004


The following patch adds an elf32-hppa-netbsd output format that makes 
GP usage consistent with other ELF platforms.  NetBSD has decided that 
we prefer the consistency over the minor potential benefit that the 
more complicated HPPA GP usage offered.

OK for trunk?

bfd:
	* config.bfd (hppa*-*-netbsd*): Set targ_defvec to
	bfd_elf32_hppa_nbsd_vec.  Add bfd_elf32_hppa_linux_vec
	to targ_selvecs.
	* configure.in (bfd_elf32_hppa_nbsd_vec): Add case.
	* configure: Regenerate.
	* elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd"
	case that accepts OSABI=NetBSD and OSABI=SysV.
	(elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to
	the base of .got or .data (if .got does not exist).
	(elf32_hppa_post_process_headers): For elf32-hppa-netbsd,
	set OSABI=NetBSD.
	(TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case.
	(TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case.
	* targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration.
	(_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec.

gas:
	* config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
	for TE_NetBSD.

ld:
	* emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".


         -- Jason R. Thorpe <thorpej@wasabisystems.com>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hppa-nbsd-patch.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20040721/aea62327/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <https://sourceware.org/pipermail/binutils/attachments/20040721/aea62327/attachment.sig>


More information about the Binutils mailing list