arm-elf-strip: invalid option -- o
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”,到底该怎样解决这个问题啊?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
帮帮忙啊,兄弟们!
没用过这个东西,不太清楚
在终端看看 file obj/armv4-le-elf/hal.o 的结果是?
make不是已经列出了supported targets
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
这样试一下呢?你这个命令估计实现参数分析的时候没那么标准,呵呵
你这两个参数 obj/armv4-le-elf/t.o obj/armv4-le-elf/hal.o 是啥意思?
把hal.o文件strip成t.o文件还是?
楼主是想strip多个文件还是把后者strip成前者啊?