summaryrefslogtreecommitdiff
path: root/bfd/elf32-arm.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2010-03-03 17:56:23 +0000
committerDaniel Jacobowitz <dan@debian.org>2010-03-03 17:56:23 +0000
commitfb1e579bd4713e56ca39c4f04a0847542ffa561e (patch)
tree8bed3211a22a7a3944b972436e68373e7106d6e2 /bfd/elf32-arm.c
parent1ab7e8a3dfe4187dbdeeff8489cfa206747a512f (diff)
downloadbinutils-redhat-fb1e579bd4713e56ca39c4f04a0847542ffa561e.tar.gz
* elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
a mapping symbol to an empty section.
Diffstat (limited to 'bfd/elf32-arm.c')
-rw-r--r--bfd/elf32-arm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 29fb29580f..c2a9987b83 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -13175,7 +13175,8 @@ elf32_arm_output_arch_local_syms (bfd *output_bfd,
&& (osi.sec->flags & (SEC_HAS_CONTENTS | SEC_LINKER_CREATED))
== SEC_HAS_CONTENTS
&& get_arm_elf_section_data (osi.sec) != NULL
- && get_arm_elf_section_data (osi.sec)->mapcount == 0)
+ && get_arm_elf_section_data (osi.sec)->mapcount == 0
+ && osi.sec->size > 0)
{
osi.sec_shndx = _bfd_elf_section_from_bfd_section
(output_bfd, osi.sec->output_section);