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]

PATCH: ARM: Fix placement of s_arm_tls_desceq function


Hi Guys,

  I am applying the patch below to fix a small problem with the recent
  ARM TLSDESC patch.  It was defining the new s_arm_tls_desceq()
  function in a part of the file which is compiled for all ARM targets,
  not just the ELF specific ones.  This prevented the non-ELF targets
  (eg arm-pe) from compiling.  The fix is to move it into the ELF
  specific part of tc-arm.c.

Cheers
  Nick

gas/ChangeLog
2011-01-10  Nick Clifton  <nickc@redhat.com>

	* config/tc-arm.c (s_arm_tls_desceq): Move code into ELF-only
	part of the file.

Index: gas/config/tc-arm.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.474
diff -u -3 -p -r1.474 tc-arm.c
--- gas/config/tc-arm.c	10 Jan 2011 08:40:17 -0000	1.474
+++ gas/config/tc-arm.c	10 Jan 2011 09:45:36 -0000
@@ -4275,7 +4275,6 @@ s_arm_eabi_attribute (int ignored ATTRIB
   if (tag < NUM_KNOWN_OBJ_ATTRIBUTES)
     attributes_set_explicitly[tag] = 1;
 }
-#endif /* OBJ_ELF */
 
 /* Emit a tls fix for the symbol.  */
 
@@ -4300,6 +4299,7 @@ s_arm_tls_descseq (int ignored ATTRIBUTE
 	       thumb_mode ? BFD_RELOC_ARM_THM_TLS_DESCSEQ
 	       : BFD_RELOC_ARM_TLS_DESCSEQ);
 }
+#endif /* OBJ_ELF */
 
 static void s_arm_arch (int);
 static void s_arm_object_arch (int);


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