This is the mail archive of the binutils@sources.redhat.com 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]

[PATCH/RFA] Mark arm-*-netbsdelf* binaries as ELFOSABI_NETBSD


The upcoming NetBSD 1.6 release is shipping with ARM ELF binaries marked
with ELFOSABI_NETBSD, in order to identify the various characteristics of
the ABI we are currently using (ATPCS, VFP-format doubles, but non-packed
enums).

The following patch adds the necessary support to bfd/gas/ld.

OK for trunk and 2.12 branch?

[ for bfd/ChangeLog ]

	* config.bfd (arm-*-netbsdelf*): Change targ_defvec
	to bfd_elf32_littlearm_nbsd_vec.  Add bfd_elf32_littlearm_vec
	and bfd_elf32_bigarm_nbsd_vec to targ_selvecs.
	* configure.in (bfd_elf32_bigarm_nbsd_vec): Add vector.
	(bfd_elf32_littlearm_nbsd_vec): Add vector.
	* configure: Regenerate.
	* elf32-arm.h (elf32_arm_post_process_headers): If the
	target name is elf32-littlearm-nbsd or elf32-bigarm-nbsd,
	set the EI_OSABI and EI_ABIVERSION fields accordingly.
	* elfarm-nabi.c (ARM_ELF_ABI_VERSION_NBSD): Define.
	(ARM_ELF_OS_ABI_VERSION_NBSD): Define.
	(elf32_arm_nabi_object_p): New function.
	(elf_backend_object_p): Define as elf32_arm_nabi_object_p.
	(bfd_elf32_littlearm_nbsd_vec): Add vector.
	(bfd_elf32_bigarm_nbsd_vec): Add vector.
	* targets.c (_bfd_target_vector): Add bfd_elf32_bigarm_nbsd_vec
	and bfd_elf32_littlearm_nbsd_vec.

[ for gas/ChangeLog ]

	* config/tc-arm.c (elf32_arm_target_format): If TE_NetBSD,
	return "elf32-bigarm-nbsd" and "elf32-littlearm-nbsd" instead
	of "elf32-bigarm" and "elf32-littlearm".

[ for ld/ChangeLog ]

	* emulparams/armelf_nbsd.sh (OUTPUT_FORMAT): Set to
	elf32-littlearm-nbsd.
	(BIG_OUTPUT_FORMAT): Set to elf32-bigarm-nbsd.
	(LITTLE_OUTPUT_FORMAT): Set to elf32-littlearm-nbsd.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

Attachment: arm-netbsdelf-diff
Description: arm-netbsdelf-diff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]