From d83ea9d6c1a37683bb219c1d0bd5b35a0b379611 Mon Sep 17 00:00:00 2001 From: drow Date: Thu, 4 Mar 2010 02:56:23 +0000 Subject: [PATCH] * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add a mapping symbol to an empty section. --- bfd/ChangeLog | 5 +++++ bfd/elf32-arm.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d1ce00c365..f592fbb1d0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2010-03-03 Daniel Jacobowitz + + * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add + a mapping symbol to an empty section. + 2010-03-02 Matthew Gretton-Dann * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the 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); -- 2.11.0