diff options
author | Nick Clifton <nickc@redhat.com> | 2003-02-10 10:44:48 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-02-10 10:44:48 +0000 |
commit | fde78edd7af5c957f88e3a8c4266c663a8bd2df0 (patch) | |
tree | 0329194b5ea2bdf30c6cc7169cc7a6ff635b09e1 /bfd/elf32-arm.h | |
parent | 469def5365549e40f76e9ed6f46fa8fba6a53c52 (diff) | |
download | gdb-fde78edd7af5c957f88e3a8c4266c663a8bd2df0.zip gdb-fde78edd7af5c957f88e3a8c4266c663a8bd2df0.tar.gz gdb-fde78edd7af5c957f88e3a8c4266c663a8bd2df0.tar.bz2 |
Add support for marking ARM ELF binaries as support the Cirrus EP9312 Maverick
floating point co-processor.
Diffstat (limited to 'bfd/elf32-arm.h')
-rw-r--r-- | bfd/elf32-arm.h | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h index 48eb873..3c56eb8 100644 --- a/bfd/elf32-arm.h +++ b/bfd/elf32-arm.h @@ -2310,12 +2310,28 @@ ERROR: %s passes floats in integer registers, whereas %s passes them in float re { if (in_flags & EF_ARM_VFP_FLOAT) _bfd_error_handler (_("\ -ERROR: %s uses VFP instructions, whereas %s uses FPA instructions"), +ERROR: %s uses VFP instructions, whereas %s does not"), bfd_archive_filename (ibfd), bfd_get_filename (obfd)); else _bfd_error_handler (_("\ -ERROR: %s uses FPA instructions, whereas %s uses VFP instructions"), +ERROR: %s uses FPA instructions, whereas %s does not"), + bfd_archive_filename (ibfd), + bfd_get_filename (obfd)); + + flags_compatible = FALSE; + } + + if ((in_flags & EF_ARM_MAVERICK_FLOAT) != (out_flags & EF_ARM_MAVERICK_FLOAT)) + { + if (in_flags & EF_ARM_MAVERICK_FLOAT) + _bfd_error_handler (_("\ +ERROR: %s uses Maverick instructions, whereas %s does not"), + bfd_archive_filename (ibfd), + bfd_get_filename (obfd)); + else + _bfd_error_handler (_("\ +ERROR: %s uses Maverick instructions, whereas %s does not"), bfd_archive_filename (ibfd), bfd_get_filename (obfd)); @@ -2410,6 +2426,8 @@ elf32_arm_print_private_bfd_data (abfd, ptr) if (flags & EF_ARM_VFP_FLOAT) fprintf (file, _(" [VFP float format]")); + else if (flags & EF_ARM_MAVERICK_FLOAT) + fprintf (file, _(" [Maverick float format]")); else fprintf (file, _(" [FPA float format]")); @@ -2430,7 +2448,8 @@ elf32_arm_print_private_bfd_data (abfd, ptr) flags &= ~(EF_ARM_INTERWORK | EF_ARM_APCS_26 | EF_ARM_APCS_FLOAT | EF_ARM_PIC | EF_ARM_NEW_ABI | EF_ARM_OLD_ABI - | EF_ARM_SOFT_FLOAT | EF_ARM_VFP_FLOAT); + | EF_ARM_SOFT_FLOAT | EF_ARM_VFP_FLOAT + | EF_ARM_MAVERICK_FLOAT); break; case EF_ARM_EABI_VER1: |