Fix script-type test failure on ARM

Daniel Jacobowitz dan@codesourcery.com
Thu Mar 4 17:17:00 GMT 2010


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



More information about the Binutils mailing list