* elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
authorDaniel Jacobowitz <drow@false.org>
Thu, 4 Mar 2010 17:16:08 +0000 (17:16 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 4 Mar 2010 17:16:08 +0000 (17:16 +0000)
sections.

bfd/ChangeLog
bfd/elf32-arm.c

index 0d0316ec08305a0b5a8027c2b26b5516ce4c744d..98e14e7a8048260eeb911e686cb50ca2596f1e3e 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-04  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
+       sections.
+
 2010-03-04  Alan Modra  <amodra@gmail.com>
 
        PR 11302
index c2a9987b83b6d0e3aa0aff2ea5d4a65575509e31..cc9ce59f3b044a45b27429afa9ec03c8fe751ec9 100644 (file)
@@ -13172,6 +13172,8 @@ elf32_arm_output_arch_local_syms (bfd *output_bfd,
             osi.sec = osi.sec->next)
          {
            if (osi.sec->output_section != NULL
+               && ((osi.sec->output_section->flags & (SEC_ALLOC | SEC_CODE))
+                   != 0)
                && (osi.sec->flags & (SEC_HAS_CONTENTS | SEC_LINKER_CREATED))
                   == SEC_HAS_CONTENTS
                && get_arm_elf_section_data (osi.sec) != NULL