fromELF is the ARM image conversion utility.
supports plain binary, Motorola 32-bit S-record format, Intel Hex-32 format,Byte Oriented Hex format.
To convert an ELF file to a plain binary (.bin) file, enter:
fromelf --bin -o outfile.bin infile.axf
To produce a plain-text output file that contains the disassembled version of an ELF file
and the symbol table, enter:
fromelf -c -s -o outfile.lst infile.axf
To produce an output listing to stdout that contains all the field offsets from all
structures in the file inputfile.o, enter:
fromelf --fieldoffsets inputfile.o
To produce an output file listing to outputfile.a that contains all the field offsets from
structures in the file inputfile.o that have a name starting with p, enter:
fromelf --fieldoffsets --select p* -o outputfile.a inputfile.o
To produce an output listing to outputfile.a that contains all the field offsets from
structures in the file inputfile.o with names of tools or moretools, enter:
fromelf --fieldoffsets --select tools.*, moretools.* -o outputfile.a inputfile.o
To produce an output file listing to outputfile.a that contains all the field offsets of
structure fields whose name starts with number and are within structure field top in
structure tools in the file inputfile.o, enter:
fromelf --fieldoffsets --select tools.top.number* -o outputfile.a inputfile.o
To list to stdout all the global and static data variables and all the structure field
addresses, enter:
fromelf --text -a --select * infile.axf
To produce a text file containing all of the structure addresses in inputfile.axf but none
of the global or static data variable information, enter:
fromelf --text -a --select *.* -o strucaddress.txt infile.axf
To produce a text file containing addresses of the nested structures only, enter:
fromelf --text -a --select *.*.* -o strucaddress.txt infile.axf
To produce a text file containing all of the global or static data variable information in
inputfile.axf but none of the structure addresses, enter:
fromelf --text -a --select *, ~*.* -o strucaddress.txt infile.axf
To produce a new output file equivalent to using the --nodebug option from an ELF file
produced with the --debug option, enter:
fromelf --nodebug --elf -o outfile.axf infile.axf