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]

[RFA:] Comments in elf/common.h about registered EM_* numbers


> From: Michael Meissner <meissner@cygnus.com>
> Date: Mon, 27 Nov 2000 16:08:58 -0500

> On Mon, Nov 27, 2000 at 08:30:04PM +0100, Hans-Peter Nilsson wrote:
> > Each entity or maintainer responsible for the machines with
> > unofficial e_machine numbers should ask registry@sco.com for an
> > officially blessed (in-sequence) number.
> > 
> > Perhaps you knew that.  Now maybe more people know it.
> 
> Maybe we should put a comment to that effect in include/elf/common.h.

Now, wouldn't that be just too easy? :-)

Ok to commit?

	* common.h (e_machine numbers): Clarify comments to describe how
	EM_* constants are assigned.  Move EM_PJ from official section to
	ad-hoc section.
	(EM_CRIS): Correct comment to match official description.
	(EM_MMIX): Ditto.

Index: common.h
===================================================================
RCS file: /cvs/src/src/include/elf/common.h,v
retrieving revision 1.25
diff -p -c -r1.25 common.h
*** common.h	2000/11/22 23:19:15	1.25
--- common.h	2000/11/27 21:31:29
*************** Foundation, Inc., 59 Temple Place - Suit
*** 90,96 ****
  #define ET_LOPROC	0xFF00	/* Processor-specific */
  #define ET_HIPROC	0xFFFF	/* Processor-specific */
  
! /* Values for e_machine, which identifies the architecture.  */
  
  #define EM_NONE		0	/* No machine */
  #define EM_M32		1	/* AT&T WE 32100 */
--- 90,98 ----
  #define ET_LOPROC	0xFF00	/* Processor-specific */
  #define ET_HIPROC	0xFFFF	/* Processor-specific */
  
! /* Values for e_machine, which identifies the architecture.  These numbers
!    are officially assigned by registry@sco.com.  See below for a list of
!    ad-hoc numbers used during initial development.  */
  
  #define EM_NONE		0	/* No machine */
  #define EM_M32		1	/* AT&T WE 32100 */
*************** Foundation, Inc., 59 Temple Place - Suit
*** 151,173 ****
  #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 */
- 
  /* If it is necessary to assign new unofficial EM_* values, please pick large
     random numbers (0x8523, 0xa7f2, etc.) to minimize the chances of collision
     with official or non-GNU unofficial values.
  
     NOTE: Do not just increment the most recent number by one.
     Somebody else somewhere will do exactly the same thing, and you
!    will have a collision.  Instead, pick a random number.  */
  
  /* Cygnus PowerPC ELF backend.  Written in the absence of an ABI.  */
  #define EM_CYGNUS_POWERPC 0x9025
--- 153,179 ----
  #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 processor */
  #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 educational 64-bit processor */
  #define EM_HUANY       81	/* Harvard's machine-independent format */
  #define EM_PRISM       82	/* SiTera Prism */
  
  /* If it is necessary to assign new unofficial EM_* values, please pick large
     random numbers (0x8523, 0xa7f2, etc.) to minimize the chances of collision
     with official or non-GNU unofficial values.
  
     NOTE: Do not just increment the most recent number by one.
     Somebody else somewhere will do exactly the same thing, and you
!    will have a collision.  Instead, pick a random number.
! 
!    Normally, each entity or maintainer responsible for a machine with an
!    unofficial e_machine number should eventually ask registry@sco.com for
!    an officially blessed number to be added to the list above.  */
! 
! #define EM_PJ          99       /* picoJava */
  
  /* Cygnus PowerPC ELF backend.  Written in the absence of an ABI.  */
  #define EM_CYGNUS_POWERPC 0x9025

brgds, H-P

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