elf e_machine discrepancy

Richard Henderson rth@cygnus.com
Thu Jul 1 00:00:00 GMT 1999


On Mon, Jun 21, 1999 at 02:15:13PM -0500, Bates, Rod wrote:
> The native as builds elf headers with e_machine value 11,
> which their documentation labels as "IBM RS/6000 and PowerPC".

Oh how ugly.

> stage1/xgcc won't link cccp because of this.   From what I
> see, it appears I have to get a version of egcs/as/ld/whatever
> which will handle the .o files produced by the native tools.
> The failing step is trying to link to installed native libraries.  

A way to get something that will accept those native libraries is to add

#define ELF_MACHINE_ALT1 11

near the end of bfd/elf32-ppc.c. 

That change can't go into the sources though.  I'm not sure what to do
about that.  Perhaps add a new vector "elf32-powerpc-powermax" that simply
adds the alternate number.


r~


More information about the Binutils mailing list