This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

How to support mips2






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
/c/TOOLS_~2/H-I686~1/bin/../lib/gcc-lib/mips64vr4300-elf/2.96/../../../../mips64vr4300-elf/bin/ld:
_ctors.o: uses different e_flags (0x20000000) fields than previous modules
(0x20000100) Bad value: failed to merge target specific data of file
/c/TOOLS_~2/H-I686~1/bin/../lib/gcc-lib/mips64vr4300-elf/2.96/el/mgp32/libgcc.a(_ctors.o)
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 



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