PATCH: BFD/ARM support for VFP object files

Richard Earnshaw rearnsha@arm.com
Wed Jan 16 06:45:00 GMT 2002


The patch below allows the bfd to check that elf objects containing VFP 
code are object-format compatible.  We now have 3 flags that are used to 
determine this:

EF_ARM_APCS_FLOAT	- arguments in FP registers (=1) integer regs (=0)
EF_ARM_VFP_FLOAT	- VFP instructions (=1) FPA instructions (=0)
EF_ARM_SOFT_FLOAT	- use FP instructiosn (=0) libcalls (=1)

In general all of these must match between two object files for the files 
to be compatible; however, the interfaces between files with

	EF_ARM_APCS_FLOAT=0, EF_ARM_VFP_FLOAT=1, EF_ARM_SOFT_FLOAT=either

are compatible, so we allow linking between these two variants

Note that EF_ARM_SOFT_FLOAT=1, EF_ARM_VFP_FLOAT=1 is distinct from 
EF_ARM_VFP_FLOAT=1, in that the format of doubles is different than for 
the FPA.

2002-01-16  Richard Earnshaw  <rearnsha@arm.com>

	* elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle 
	EF_ARM_VFP_FLOAT.
	(elf32_arm_print_private_bfd_data): Likewise.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfd-vfp.patch
Type: text/x-patch
Size: 3586 bytes
Desc: bfd-vfp.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20020116/861849d5/attachment.bin>


More information about the Binutils mailing list