This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: rs6000:6000 versus powerpc:commom
Alan Modra wrote:
>
> On Thu, Feb 13, 2003 at 02:55:37PM -0600, Joel Sherrill wrote:
> > What is the trick to having the default architecture be powerpc:common
> > with an xcoff target?
>
> Tweak ARCH in the relevant emulparams file. At least, that's what I
> did for elf32ppc.sh and elf64ppc.sh.
I've now tried that and it still produces rs6000:6000. The only place I
see rs6000:6000 in bfd is in cpu-rs6000.c which makes me think there
must be some tie between coff-rs6000.c and the default architecture
that I don't have a clue about.
Here is what I know about what is expected based upon the examining
headers of old toolset objects and executables:
+ for .o's, architecture=rs6000:6000, flags=0x031
+ for .exe's, architecture=powerpc:common, flags=0x133
The new toolset has it mostly correct:
+ for .o's, architecture=rs6000:6000, flags=0x031
+ for .exe's, architecture=rs6000:6000, flags=0x133
Somehow, I need to tweak something to get the default architecture
for exe's to be powerpc:common. I'm hunting, but I can't find
the right thing. :( Any more ideas?
> --
> Alan Modra
> IBM OzLabs - Linux Technology Centre
--
Joel Sherrill, Ph.D. Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985