使用fromelf把axf文件转换成elf格式

179 篇文章 183 订阅

FROMELF用法
命令格式:

fromelf [options] input_file 

fromelf -h即可打印出帮助信息。

 
Product: MDK Plus 5.29
Component: ARM Compiler 5.06 update 6 (build 750)
Tool: fromelf [4d35e3]
For support see http://www.arm.com/support
Software supplied by: ARM Limited
 
ARM image conversion utility
fromelf [options] input_file
 
Options:
       --help         display this help screen
       --vsn          display version information
       --output file  the output file. (defaults to stdout for -text format)
       --nodebug      do not put debug areas in the output image
       --nolinkview   do not put sections in the output image
 
Binary Output Formats:
       --bin          Plain Binary
       --m32          Motorola 32 bit Hex
       --i32          Intel 32 bit Hex
       --vhx          Byte Oriented Hex format
 
       --base addr    Optionally set base address for m32,i32
 
Output Formats Requiring Debug Information
       --fieldoffsets Assembly Language Description of Structures/Classes
       --expandarrays Arrays inside and outside structures are expanded
 
Other Output Formats:
       --elf         ELF
       --text        Text Information
 
                Flags for Text Information
                -v          verbose
                -a          print data addresses (For images built with debug)
                -c          disassemble code
                -d          print contents of data section
                -e          print exception tables
                -g          print debug tables
                -r          print relocation information
                -s          print symbol table
                -t          print string table
                -y          print dynamic segment contents
                -z          print code and data size information

中文:

ARM 映像转换工具
fromelf [options] input_file 
选项: 
--help 显示帮助信息 
--vsn 显示版本信息 
--output file 输出文件名. (默认输出 -text 格式) 
--nodebug 不要输出调试信息到映像文件中 
--nolinkview 不要输出段信息到映像文件中 
 
二进制输出格式: 
--bin 普通二进制 
--m32 摩托罗拉32位Hex码 
--i32 英特尔32位Hex码 
--vhx 定向字节的 Hex 格式 
--base addr 为 m32,i32设置基地址(可选的) 
 
输出格式要求的调试信息 
--fieldoffsets Structures/Classes的汇编描述 
--expandarrays Arrays inside and outside structures are expanded 
 
其他输出格式: 
--elf ELF格式 
--text 文本信息 
    文本信息的标志 
    -v 详细信息 
    -a 打印数据的地址信息 (得到的.axf映像文件) 
    -c 汇编码 
    -d 打印数据的段内容 
    -e 打印例表 
    -g 打印调试表 
    -r 打印重定位信息 
    -s 打印符号表 
    -t 打印字符表 
    -y 打印段内容分析 
    -z 打印代码与数据的大小信息

把axf转成elf的命令:

fromelf.exe   --elf -o  ..\..\test.elf  Objects\test.axf

把axf转成bin的命令:

fromelf.exe   --bin -o  ..\..\test.bin  Objects\test.axf
  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
要将3个多核的elf文件合并为一个elf文件,可以使用Keil环境自带的fromelf.exe工具或arm-gcc编译器下的arm-none-eabi-objcopy.exe工具。其中,fromelf.exe工具可以通过以下命令将多个elf文件合并为一个elf文件: ``` fromelf --bin --output=merged.elf file1.elf file2.elf file3.elf ``` 这将生成一个名为merged.elf的合并后的elf文件。另外,arm-none-eabi-objcopy.exe工具也可以通过以下命令实现elf文件的合并: ``` arm-none-eabi-objcopy --input-target=elf32-little --output-target=elf32-little --output=merged.elf file1.elf file2.elf file3.elf ``` 同样地,这也会生成一个名为merged.elf的合并后的elf文件。请根据您所使用的工具和需求选择合适的方法进行合并。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [如何将elf文件换为hex文件](https://download.csdn.net/download/weixin_38827143/12253466)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [在外部DDR3内存中运行的MicroBlaze程序的固化方法](https://blog.csdn.net/ZLK1214/article/details/115875025)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [基于TMS320C6678的多核DSP上电加载技术](https://blog.csdn.net/kunkliu/article/details/104273928)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

【ql君】qlexcel

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值