PATCH: Add new xcoff defines for AIX 7.1

Tristan Gingold gingold@adacore.com
Mon Jul 1 13:46:00 GMT 2013


Hello,

AIX 6 and AIX 7 have added a few features for XCOFF format. This first patch simply adds the definition.

Ok for trunk ?

Tristan.

include/coff:
2013-07-01  Tristan Gingold  <gingold@adacore.com>
	   
	* internal.h (C_STTLS, C_GTLS): Define.
	* xcoff.h (XMC_TL, XMC_TU, XMC_TE): Define.

Index: include/coff/internal.h
===================================================================
RCS file: /cvs/src/src/include/coff/internal.h,v
retrieving revision 1.28
diff -c -r1.28 internal.h
*** include/coff/internal.h	31 Mar 2011 08:13:48 -0000	1.28
--- include/coff/internal.h	1 Jul 2013 13:45:52 -0000
***************
*** 343,348 ****
--- 343,350 ----
  #define C_FUN           (0x8e)
  #define C_BSTAT         (0x8f)
  #define C_ESTAT         (0x90)
+ #define C_GTLS          (0x97)
+ #define C_STTLS         (0x98)
  
  /* Storage classes for Thumb symbols */
  #define C_THUMBEXT      (128 + C_EXT)		/* 130 */
Index: include/coff/xcoff.h
===================================================================
RCS file: /cvs/src/src/include/coff/xcoff.h,v
retrieving revision 1.21
diff -c -r1.21 xcoff.h
*** include/coff/xcoff.h	27 Apr 2011 15:04:04 -0000	1.21
--- include/coff/xcoff.h	1 Jul 2013 13:45:52 -0000
***************
*** 171,176 ****
--- 171,180 ----
  #define XMC_TD	16		/* Read-write data in TOC */
  #define	XMC_SV64   17		/* Read-only 64 bit supervisor call */
  #define	XMC_SV3264 18		/* Read-only 32 or 64 bit supervisor call */
+ /*                19   ??? */
+ #define XMC_TL     20          /* Read-write initialized TLS data */
+ #define XMC_TU     21          /* Read-write uninitialized TLS data */
+ #define XMC_TE     22          /* Same as XMC_TE but mapped after it */
  
  /* The ldhdr structure.  This appears at the start of the .loader
     section.  */



More information about the Binutils mailing list