gas porting (bfd)
Shinpei Kato
shinny@j02.itscom.net
Wed Feb 4 20:34:00 GMT 2004
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
More information about the crossgcc
mailing list