binutils: elf e_machine values discrepancy

David Edelsohn dje@watson.ibm.com
Wed Jun 30 15:43:00 GMT 1999


>>>>> "Bates, Rod" writes:

Rod> This is primarily a binutils question (Is there another
Rod> forum, more appripriate?)

	There is a binutils newsgroup on USENET.  I am not sure if it is
gated from a mailinglist.

Rod> I am trying to build egcs-1.1.2 on a Concurrent PowerMax machine.
Rod> This platform is powerpc, big endian, and uses elf. 

Rod> The native as builds elf headers with e_machine value 11,
Rod> which their documentation labels as "IBM RS/6000 and PowerPC".

	What is the "native as"?

Rod> The binutils I built produce e_machine value EM_POWERPC = 20.
Rod> in binutils, include/common.h lists EM_OLD_SPARCV9 as
Rod> having value 11.  
 
	binutils is correct and the "native as" as well their
documentation is wrong.  EM_POWERPC is 20.  EM_PPC64 is 21.  The value 11
is not part of the block of values that IBM uses.

	I presume that whoever wrote the "native as" used a SPARC
assembler as the basis and did not understand the significance of that ELF
header field or got the wrong value from somewhere.  Maybe Solaris/PPC's
preliminary assmebler was producing incorrect files and they used that?

David



More information about the Gcc mailing list