This is the mail archive of the binutils@sources.redhat.com 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]

Add new ELF constants to common.h


Hi Guys,

  The next draft of the ELF ABI spec will be defining some new
  constants, so I thought that it would be a good idea to add them to
  common.h header file.  I also took the opportunity to tidy up the
  formatting a small amount.

Cheers
	Nick


2000-11-22  Nick Clifton  <nickc@redhat.com>

	* common.h (EM_JAVELIN): New machine number.
	(EM_FIREPATH): New machine number.
	(EM_ZSP): New machine number.
	(EM_MMIX): New machine number.
	(EM_HUANY): New machine number.
	(EM_PRISM): New machine number.
	(SHT_GROUP): New section type.
	(SHT_SYMTAB_SHNDX): New section type.
	(SHF_GROUP): New section flag.
	(SHN_XINDEX): New section index.
	(GRP_COMDAT): New section group flag.

Index: common.h
===================================================================
RCS file: /cvs/src//src/include/elf/common.h,v
retrieving revision 1.24
diff -p -w -r1.24 common.h
*** common.h	2000/11/20 23:45:42	1.24
--- common.h	2000/11/22 23:04:57
*************** Foundation, Inc., 59 Temple Place - Suit
*** 149,157 ****
  #define EM_68HC08      71	/* Motorola MC68HC08 Microcontroller */
  #define EM_68HC05      72	/* Motorola MC68HC05 Microcontroller */
  #define EM_SVX         73	/* Silicon Graphics SVx */
! #define EM_ST19        74	/* STMicroelectronics ST19 8-bit microcontroller */
  #define EM_VAX         75	/* Digital VAX */
! #define EM_CRIS	 76	/* Axis Communications 32-bit embedded processor */
  
  #define EM_PJ          99       /* picoJava */
  
--- 149,163 ----
  #define EM_68HC08      71	/* Motorola MC68HC08 Microcontroller */
  #define EM_68HC05      72	/* Motorola MC68HC05 Microcontroller */
  #define EM_SVX         73	/* Silicon Graphics SVx */
! #define EM_ST19        74	/* STMicroelectronics ST19 8-bit cpu */
  #define EM_VAX         75	/* Digital VAX */
! #define EM_CRIS	 76	/* Axis Communications 32-bit embedded cpu */
! #define EM_JAVELIN     77	/* Infineon Technologies 32-bit embedded cpu */
! #define EM_FIREPATH    78	/* Element 14 64-bit DSP processor */
! #define EM_ZSP	 79	/* LSI Logic's 16-bit DSP processor */
! #define EM_MMIX	 80	/* Donald Knuth's education 64-bit processor */
! #define EM_HUANY       81	/* Harvard's machine-independent format */
! #define EM_PRISM       82	/* SiTera Prism */
  
  #define EM_PJ          99       /* picoJava */
  
*************** Foundation, Inc., 59 Temple Place - Suit
*** 248,259 ****
  #define SHT_SHLIB	10		/* Reserved, unspecified semantics */
  #define SHT_DYNSYM	11		/* Dynamic linking symbol table */
  
! #define SHT_INIT_ARRAY  14		/* Array of pointers to init functions */
! #define SHT_FINI_ARRAY  15		/* Array of pointers to finish functions */
! #define SHT_PREINIT_ARRAY 16		/* Array of pointers to pre-init functions */
  
! #define SHT_LOOS        0x60000000      /* Operating system specific semantics, lo */
! #define SHT_HIOS        0x6fffffff      /* Operating system specific semantics, hi */
  
  /* The next three section types are defined by Solaris, and are named
     SHT_SUNW*.  We use them in GNU code, so we also define SHT_GNU*
--- 254,267 ----
  #define SHT_SHLIB	10		/* Reserved, unspecified semantics */
  #define SHT_DYNSYM	11		/* Dynamic linking symbol table */
  
! #define SHT_INIT_ARRAY    14		/* Array of ptrs to init functions */
! #define SHT_FINI_ARRAY    15		/* Array of ptrs to finish functions */
! #define SHT_PREINIT_ARRAY 16		/* Array of ptrs to pre-init funcs */
! #define SHT_GROUP         17		/* Section contains a section group */
! #define SHT_SYMTAB_SHNDX  18		/* Indicies for SHN_XINDEX entries */
  
! #define SHT_LOOS        0x60000000      /* First of OS specific semantics */
! #define SHT_HIOS        0x6fffffff      /* Last of OS specific sementics */
  
  /* The next three section types are defined by Solaris, and are named
     SHT_SUNW*.  We use them in GNU code, so we also define SHT_GNU*
*************** Foundation, Inc., 59 Temple Place - Suit
*** 281,288 ****
  #define SHF_STRINGS	(1 << 5)	/* Contains null terminated character strings */
  #define SHF_INFO_LINK	(1 << 6)	/* sh_info holds section header table index */
  #define SHF_LINK_ORDER  (1 << 7)	/* Preserve section ordering when linking */
! #define SHF_OS_NONCONFORMING (1 << 8)	/* OS specifci processing required */
 
  /* #define SHF_MASKOS	0x0F000000    *//* OS-specific semantics */
  #define SHF_MASKOS	0x0FF00000	/* New value, Oct 4, 1999 Draft */
--- 289,296 ----
  #define SHF_STRINGS	(1 << 5)	/* Contains null terminated character strings */
  #define SHF_INFO_LINK	(1 << 6)	/* sh_info holds section header table index */
  #define SHF_LINK_ORDER  (1 << 7)	/* Preserve section ordering when linking */
! #define SHF_OS_NONCONFORMING (1 << 8)	/* OS specific processing required */
+ #define SHF_GROUP	(1 << 9)	/* Member of a section group */

  /* #define SHF_MASKOS	0x0F000000    *//* OS-specific semantics */
  #define SHF_MASKOS	0x0FF00000	/* New value, Oct 4, 1999 Draft */
*************** Foundation, Inc., 59 Temple Place - Suit
*** 370,375 ****
--- 378,384 ----
  #define SHN_HIOS        0xFF3F		/* OS specific semantics, hi */
  #define SHN_ABS		0xFFF1		/* Associated symbol is absolute */
  #define SHN_COMMON	0xFFF2		/* Associated symbol is in common */
+ #define SHN_XINDEX	0xFFFF		/* Section index it held elsewhere */
  #define SHN_HIRESERVE	0xFFFF		/* End range of reserved indices */
  
  /* The following constants control how a symbol may be accessed once it has
*************** Foundation, Inc., 59 Temple Place - Suit
*** 564,582 ****
--- 572,597 ----
  #define SYMINFO_NONE		0
  #define SYMINFO_CURRENT		1
  #define SYMINFO_NUM		2
+ 
+ /* Section Group Flags.  */
+ 
+ #define GRP_COMDAT		0x1	/* A COMDAT group */
  
  #endif /* _ELF_COMMON_H */

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