This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Commit PATCH: PR 6962:


Hi Guys,

  I am checking in the patch below to fix a problem with COFF format
  files where the section symbol(s) have a derived type.

Cheers
  Nick

bfd/ChangeLog
2010-10-29  Nick Clifton  <nickc@redhat.com>

	PR binutils/6962
	* coffcode.h (handle_COMDAT): Only check the base type when
	looking for a section symbol.

Index: bfd/coffcode.h
===================================================================
RCS file: /cvs/src/src/bfd/coffcode.h,v
retrieving revision 1.169
diff -u -3 -p -r1.169 coffcode.h
--- bfd/coffcode.h	22 Sep 2010 14:19:35 -0000	1.169
+++ bfd/coffcode.h	29 Oct 2010 11:09:02 -0000
@@ -956,7 +956,7 @@ handle_COMDAT (bfd * abfd,
 
 		if (! ((isym.n_sclass == C_STAT
 			|| isym.n_sclass == C_EXT)
-		       && isym.n_type == T_NULL
+		       && BTYPE (isym.n_type) == T_NULL
 		       && isym.n_value == 0))
 		  abort ();
 
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]