aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arm.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-03-04 17:16:08 +0000
committerDaniel Jacobowitz <drow@false.org>2010-03-04 17:16:08 +0000
commitf7dd8c79635c8e576cf5138a9ea5b068732cf044 (patch)
tree0ffdca03592597cc0ef4be7c919a2a6b49dfcfbc /bfd/elf32-arm.c
parentba98da750e0bc7b2b9399945619b0a8ab88cf1cd (diff)
downloadgdb-f7dd8c79635c8e576cf5138a9ea5b068732cf044.zip
gdb-f7dd8c79635c8e576cf5138a9ea5b068732cf044.tar.gz
gdb-f7dd8c79635c8e576cf5138a9ea5b068732cf044.tar.bz2
* elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
sections.
Diffstat (limited to 'bfd/elf32-arm.c')
-rw-r--r--bfd/elf32-arm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index c2a9987..cc9ce59 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -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