This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gas porting (bfd)


Hi, there. replying myself.

I proceeded a little, I did coding according to MISP architecture
implementation and faced another problem.
It seems I have to define "bfd_mach_xxx", as "bfd_mach_mips8000", though,
it can be defined only in bfd/bfd-in2.h that is read-only and generated
from other files.
So this time question is how I can define bfd_mach_xxx macro.
I apprecieate your help.

Regards.
Shinpei Kato.


On Thu, 05 Feb 2004 05:34:01 +0900
Shinpei Kato <shinny@j02.itscom.net> wrote:

> > Hi, This is the first time for me to post a message to this ML.
> Nice to speak to you.
> 
> Now I'm porting GCC & GAS for the new CPU developed in our lab of the
> univ.
> I could complete GCC porting. I mean I could generate a *.s file with
> xxx-elf-gcc -S option.
> But if I try "xxx-elf-gcc -o hoge.c", it fails with a following message.
> 
> $ xxx-elf-gcc -o test test.c
> Assembler messages:
> Warning: Could not set architecture and machine
> /usr/local/.../xxx-elf/bin/ld: /tmp/ccELuxcz.o: Relocations in generic
> ELF (EM: 0)
> 		:
> 		:
> 
> Actually, I've made use of gcc&gas-related files for MIPS architecutre.
> So, the above message is written in binutils/gas/config/tc-mips.c.
> If I observe tc-mips.c, the above message is displayed only when the
> bfd_set_arch_mach() function fails.
> Although I looked for where the bfd_set_arch_mach() function is, I could
> find it only in binutils/bfd/bfd-in2.h.
> Besides I can't understand the several macros in this file, this file
> seems a read-only file.
> Now I'm confusing very much.
> Could someone tell me how it works and how I can complete the rest for
> gas porting?
> 
> Regards,
> 
> -- 
> Shinpei Kato <shinny@j02.itscom.net>
> 
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
> 




------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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