Subject: CVS commit: src/gnu/dist/binutils
To: None <source-changes@NetBSD.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 07/20/2004 20:47:19
Module Name:	src
Committed By:	thorpej
Date:		Tue Jul 20 20:47:19 UTC 2004

Modified Files:
	src/gnu/dist/binutils/bfd: config.bfd configure configure.in
	    elf32-hppa.c targets.c
	src/gnu/dist/binutils/gas/config: tc-hppa.h
	src/gnu/dist/binutils/ld/emulparams: hppanbsd.sh

Log Message:
Integrate / parameterize changes from Chuq Silvers / Nick Hudson to
simplify GP handling on HPPA for NetBSD, and get dynamically-linked
executables working.  Changes to be submitted to FSF:

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.in: 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".


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 src/gnu/dist/binutils/bfd/config.bfd
cvs rdiff -r1.2 -r1.3 src/gnu/dist/binutils/bfd/configure \
    src/gnu/dist/binutils/bfd/configure.in
cvs rdiff -r1.1.1.1 -r1.2 src/gnu/dist/binutils/bfd/elf32-hppa.c \
    src/gnu/dist/binutils/bfd/targets.c
cvs rdiff -r1.2 -r1.3 src/gnu/dist/binutils/gas/config/tc-hppa.h
cvs rdiff -r1.2 -r1.3 src/gnu/dist/binutils/ld/emulparams/hppanbsd.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.