有关RTEMS 编译工具“-mips32 -EL”问题

DevinCheung 2012-12-24 03:01:48

大家好,鄙人刚接触RTEMS系统不久,现在想将RTEMS移植到mips32,小端的cpu的板子。但按官方的方法,制作出的交叉编译工具,是编写大端。貌似可以用传“-EL”可以编译成小端模式的镜像,悲剧的是一加“-EL”参数,
#mips-rtems-gcc -mips32 -EL -o test test.c
则会报错:

/opt/rtems/lib/gcc/mips-rtems/4.4.6/../../../../mips-rtems/bin/ld: /opt/rtems/lib/gcc/mips-rtems/4.4.6/../../../../mips-rtems/lib/crt0.o: compiled for a big endian system and target is little endian
/opt/rtems/lib/gcc/mips-rtems/4.4.6/../../../../mips-rtems/bin/ld: /opt/rtems/lib/gcc/mips-rtems/4.4.6/../../../../mips-rtems/lib/crt0.o: endianness incompatible with that of the selected emulation
/opt/rtems/lib/gcc/mips-rtems/4.4.6/../../../../mips-rtems/bin/ld: failed to merge target specific data of file /opt/rtems/lib/gcc/mips-rtems/4.4.6/../../../../mips-rtems/lib/crt0.o
/opt/rtems/lib/gcc/mips-rtems/4.4.6/../../../../mips-rtems/bin/ld: /opt/rtems/lib/gcc/mips-rtems/4.4.6/../../../../mips-rtems/lib/libc.a(lib_a-isatty.o): compiled for a big endian system and target is little endian
/opt/rtems/lib/gcc/mips-rtems/4.4.6/../../../../mips-rtems/bin/ld: /opt/rtems/lib/gcc/mips-rtems/4.4.6/../../../../mips-rtems/lib/libc.a(lib_a-isatty.o): endianness incompatible with that of the selected emulation

希望遇到过此情况的前辈们,可以指点指点。谢谢。

另外,
#mips-rtems-gcc -v
出来的信息
-64 create 64 ABI object file

Linker options
==============

Use "-Wl,OPTION" to pass "OPTION" to the linker.

elf32ebmip:
--build-id[=STYLE] Generate build ID note
-Bgroup Selects group name lookup rules for DSO
--disable-new-dtags Disable new dynamic tags
--enable-new-dtags Enable new dynamic tags
--eh-frame-hdr Create .eh_frame_hdr section
--hash-style=STYLE Set hash style to sysv, gnu or both
-z combreloc Merge dynamic relocs into one section and sort
-z defs Report unresolved symbols in object files.
-z execstack Mark executable as requiring executable stack

没有列出elf32elmip:等小端的信息。
我运行板子linux的工具链“mipsel-linux-gcc -target-help”,可以看到有elf32elmips等其他字样。
现在有两个疑问:
1,是我的编译工具有问题?
2,还是我的makefile/confiugre有问题?

万分感谢!!!
...全文
964 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
kitten1 2014-01-01
  • 打赏
  • 举报
回复
host CPU是什么系统,你没说?交叉编译的配置环境你也没讲! 不过我猜出来了,应该是BSP的问题。找厂家要支持哪个目标的BSP
flexman09 2013-11-21
  • 打赏
  • 举报
回复
我也在研究rtems,求交流
l_11l 2013-08-16
  • 打赏
  • 举报
回复
大哥,这是VxWorks论坛
DevinCheung 2012-12-27
  • 打赏
  • 举报
回复
没人回复?还是自己看资料吧```

2,179

社区成员

发帖
与我相关
我的任务
社区描述
xworks是美国 Wind River System 公司( 以下简称风河公司 ,即 WRS 公司)推出的一个实时操作系统。
社区管理员
  • VxWorks开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧