免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5043 | 回复: 6
打印 上一主题 下一主题

arm-elf-strip: invalid option -- o [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-01 18:09 |只看该作者 |倒序浏览
5可用积分
arm-elf-strip --strip-unneeded -o obj/armv4-le-elf/t.o obj/armv4-le-elf/hal.o
arm-elf-strip: invalid option -- o
Usage: arm-elf-strip <switches> in-file(s)
The switches are:
  -I --input-target <bfdname>      Assume input file is in format <bfdname>
  -O --output-target <bfdname>     Create an output file in format <bfdname>
  -F --target <bfdname>            Set both input and output format to <bfdname>
  -p --preserve-dates              Copy modified/access timestamps to the output
  -R --remove-section <name>       Remove section <name> from the output
  -s --strip-all                   Remove all symbol and relocation information
  -g -S --strip-debug              Remove all debugging symbols
     --strip-unneeded              Remove all symbols not needed by relocations
  -N --strip-symbol <name>         Do not copy symbol <name>
  -K --keep-symbol <name>          Only copy symbol <name>
  -x --discard-all                 Remove all non-global symbols
  -X --discard-locals              Remove any compiler-generated symbols
  -v --verbose                     List all object files modified
  -V --version                     Display this program's version number
  -h --help                        Display this output
  -o <file>                        Place stripped output into <file>
arm-elf-strip: supported targets: elf32-littlearm elf32-bigarm elf32-little elf32-big srec symbolsrec tekhex binary ihex
make[3]: *** [obj/armv4-le-elf/hal.mangle] Error 1

我将makefile中的"-o"删除掉,又报错说“没有文件obj/armv4-le-elf/t.o”,到底该怎样解决这个问题啊?

论坛徽章:
0
2 [报告]
发表于 2009-02-02 12:20 |只看该作者
帮帮忙啊,兄弟们!

论坛徽章:
3
金牛座
日期:2014-06-14 22:04:062015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:49:45
3 [报告]
发表于 2009-02-02 15:17 |只看该作者

回复 #2 todayrw 的帖子

没用过这个东西,不太清楚

论坛徽章:
0
4 [报告]
发表于 2009-02-02 16:09 |只看该作者
在终端看看 file obj/armv4-le-elf/hal.o 的结果是?
make不是已经列出了supported targets

论坛徽章:
0
5 [报告]
发表于 2009-02-06 00:47 |只看该作者
arm-elf-strip --strip-unneeded -o obj/armv4-le-elf/t.o obj/armv4-le-elf/hal.o

换成

arm-elf-strip --strip-unneeded obj/armv4-le-elf/hal.o -o obj/armv4-le-elf/t.o

这样试一下呢?你这个命令估计实现参数分析的时候没那么标准,呵呵

论坛徽章:
0
6 [报告]
发表于 2009-02-06 00:49 |只看该作者
你这两个参数 obj/armv4-le-elf/t.o obj/armv4-le-elf/hal.o  是啥意思?

把hal.o文件strip成t.o文件还是?

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
7 [报告]
发表于 2009-02-06 10:11 |只看该作者
楼主是想strip多个文件还是把后者strip成前者啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP