This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix script-type test failure on ARM
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: binutils at sourceware dot org
- Date: Thu, 4 Mar 2010 12:17:02 -0500
- Subject: Fix script-type test failure on ARM
I've checked in this obvious patch to fix script-type; it was failing
because there was now a $d symbol at the start of .ARM.attributes.
--
Daniel Jacobowitz
CodeSourcery
2010-03-04 Daniel Jacobowitz <dan@codesourcery.com>
* elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
sections.
Index: elf32-arm.c
===================================================================
--- elf32-arm.c (revision 277712)
+++ elf32-arm.c (working copy)
@@ -13182,6 +13182,8 @@ elf32_arm_output_arch_local_syms (bfd *o
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