XCOFF 64 function address wrong?

Nick Clifton nickc@redhat.com
Wed Mar 9 15:39:00 GMT 2005


Hi David,

>>guess is that for some reason XCOFF64 is not defined for your 
>>configuration and so it is printing a 32-bit value instead of a 64-bit 
>>value.

> That's exactly right.  
> 
> Now where should that be getting defined? 

A simple grep shows that it is defined in bfd/coff64-rs6000.c.

> My config settings according
> to config status are:
> 
> '--target=powerpc-ibm-aix5.2.0.0' '--with-gnu-as' '--with-gnu-ld'
> '--enable-64-bit-bfd' '--program-transform-name=s,y,y,' '--srcdir=.'

The target would appear to be the problem.  If the target was:

   --target=powerpc64-ibm-aix5.2.0.0

then I think that it should work.

[See bfd/config.bfd for where this target is matched.  Look for the 
targ_defvec and then compare that the list of vectors in 
bfd/configure.in.  You want one that triggers the inclusion of 
coff64-rs6000].

Cheers
   Nick



More information about the Binutils mailing list