[ECOS] How to support mips2

root root@pyxue.zh.t2-design.com
Sun Dec 17 00:23:00 GMT 2000

Hi, all:

I want to let eCos support mips2 CPU, I add a flag -mips2 in my
mips64vr4300-elf-gcc.  I hope that  this flag will prevent the compiler
to generate some instructions which are not supported by mips2. But I meet
a problem when I compile the stub. The following is the error message.

mips64vr4300-elf-gcc -mgp32 -EL -g -nostdlib -Wl,--gc-sections -Wl,-static
-L//E/mywork/stub2_install/lib -Ttarget.ld -o
//E/mywork/stub2_install/bin/gdb_module.img src/stubrom/gdb_module.o
_ctors.o: uses different e_flags (0x20000000) fields than previous modules
(0x20000100) Bad value: failed to merge target specific data of file
collect2: ld returned 1 exit status make[1]: ***
[//E/mywork/stub2_install/bin/gdb_module.img] Error 1 make: *** [build]
Error 2

I think the flag -mips2 is correct, but it is conflict with the
mips_vr4300.ld. Can someone tell me how to modify this link script so it
can support mip2?
Many thanks!

Cos Xue 

More information about the Ecos-discuss mailing list