From 2e6030b93148e7b1097571d7e78aaebef0755c08 Mon Sep 17 00:00:00 2001 From: Mark Shinwell Date: Wed, 9 May 2007 13:02:10 +0000 Subject: [PATCH] bfd/ * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Don't attempt to scan if the bfd doesn't correspond to an ELF image. (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise. --- bfd/ChangeLog | 6 ++++++ bfd/elf32-arm.c | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 60d9d647aff..2fe431b0ff8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2007-05-09 Mark Shinwell + + * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Don't + attempt to scan if the bfd doesn't correspond to an ELF image. + (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise. + 2007-05-08 Alexandre Oliva * elf32-frv.c (elf32_frv_relocate_section): Discard dynamic relocs diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 97f4fd08585..3fc47a9fa6a 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -3648,6 +3648,10 @@ bfd_elf32_arm_vfp11_erratum_scan (bfd *abfd, struct bfd_link_info *link_info) if (globals->vfp11_fix == BFD_ARM_VFP11_FIX_NONE) return TRUE; + + /* Skip if this bfd does not correspond to an ELF image. */ + if (bfd_get_flavour (abfd) != bfd_target_elf_flavour) + return TRUE; for (sec = abfd->sections; sec != NULL; sec = sec->next) { @@ -3819,7 +3823,11 @@ bfd_elf32_arm_vfp11_fix_veneer_locations (bfd *abfd, if (link_info->relocatable) return; - + + /* Skip if this bfd does not correspond to an ELF image. */ + if (bfd_get_flavour (abfd) != bfd_target_elf_flavour) + return; + globals = elf32_arm_hash_table (link_info); tmp_name = bfd_malloc ((bfd_size_type) strlen -- 2.30.2