aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arm.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2009-01-30 01:32:25 +0000
committerJoseph Myers <joseph@codesourcery.com>2009-01-30 01:32:25 +0000
commit33a7ffc270cc08ccec978d8e6ca2ea29e75c5478 (patch)
treecf3f1b45886f5bcbd9ea0811873f806a47577dbd /bfd/elf32-arm.c
parent13d72a148e239265338a80acec26874a95a91ab6 (diff)
downloadgdb-33a7ffc270cc08ccec978d8e6ca2ea29e75c5478.zip
gdb-33a7ffc270cc08ccec978d8e6ca2ea29e75c5478.tar.gz
gdb-33a7ffc270cc08ccec978d8e6ca2ea29e75c5478.tar.bz2
2009-01-30 Julian Brown <julian@codesourcery.com>
* elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with EXEC_P or DYNAMIC flags, and skip sections which are being linked with --just-symbols (-R).
Diffstat (limited to 'bfd/elf32-arm.c')
-rw-r--r--bfd/elf32-arm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 4842179..de063e6 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -4998,6 +4998,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 this BFD if it corresponds to an executable or dynamic object. */
+ if ((abfd->flags & (EXEC_P | DYNAMIC)) != 0)
+ return TRUE;
+
for (sec = abfd->sections; sec != NULL; sec = sec->next)
{
unsigned int i, span, first_fmac = 0, veneer_of_insn = 0;
@@ -5008,6 +5012,8 @@ bfd_elf32_arm_vfp11_erratum_scan (bfd *abfd, struct bfd_link_info *link_info)
if (elf_section_type (sec) != SHT_PROGBITS
|| (elf_section_flags (sec) & SHF_EXECINSTR) == 0
|| (sec->flags & SEC_EXCLUDE) != 0
+ || sec->sec_info_type == ELF_INFO_TYPE_JUST_SYMS
+ || sec->output_section == bfd_abs_section_ptr
|| strcmp (sec->name, VFP11_ERRATUM_VENEER_SECTION_NAME) == 0)
continue;