Hello,
I would always appreciate lots of help from ARM community site.Currently I am trying to make disassembly file using GNUCC (gcc-arm-9.2-2019.12-aarch64-aarch64-none-elf.tar.xz) after making elf file. I used this command:
/home/junieu/TEMP/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf/bin/aarch64-none-elf-objdump --disassemble-all -disassemble-zeros dhrystone.elf
And the generated answer is like below. I used the same binary from the package.. so would wonder where the error comes from. Or should I use another method to generate disassembly file?
[junieu@mondavi Applications]$ /home/junieu/TEMP/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf/bin/aarch64-none-elf-objdump --disassemble-all -disassemble-zeros dhrystone.elf BFD header file version (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209 elf64-littleaarch64 (header little endian, data little endian) aarch64 elf64-bigaarch64 (header big endian, data big endian) aarch64 elf32-littleaarch64 (header little endian, data little endian) aarch64 elf32-bigaarch64 (header big endian, data big endian) aarch64 elf32-littlearm (header little endian, data little endian) arm elf32-bigarm (header big endian, data big endian) arm elf64-little (header little endian, data little endian) arm aarch64 elf64-big (header big endian, data big endian) arm aarch64 elf32-little (header little endian, data little endian) arm aarch64 elf32-big (header big endian, data big endian) arm aarch64 elf32-littlearm-fdpic (header little endian, data little endian) arm elf32-bigarm-fdpic (header big endian, data big endian) arm srec (header endianness unknown, data endianness unknown) arm aarch64 symbolsrec (header endianness unknown, data endianness unknown) arm aarch64 verilog (header endianness unknown, data endianness unknown) arm aarch64 tekhex (header endianness unknown, data endianness unknown) arm aarch64 binary (header endianness unknown, data endianness unknown) arm aarch64 ihex (header endianness unknown, data endianness unknown) arm aarch64 plugin (header little endian, data little endian) elf64-littleaarch64 elf64-bigaarch64 elf32-littleaarch64 arm ------------------- ---------------- ------------------- aarch64 elf64-littleaarch64 elf64-bigaarch64 elf32-littleaarch64 elf32-bigaarch64 elf32-littlearm elf32-bigarm elf64-little elf64-big arm ---------------- elf32-littlearm elf32-bigarm elf64-little elf64-big aarch64 elf32-bigaarch64 --------------- ------------ elf64-little elf64-big elf32-little elf32-big elf32-littlearm-fdpic elf32-bigarm-fdpic srec arm elf32-little elf32-big elf32-littlearm-fdpic elf32-bigarm-fdpic srec aarch64 elf32-little elf32-big --------------------- ------------------ srec symbolsrec verilog tekhex binary ihex plugin arm symbolsrec verilog tekhex binary ihex ------ aarch64 symbolsrec verilog tekhex binary ihex ------
mongolee said:so would wonder where the error comes from
Are you sure your command-line is correct? Check objdump's help.
Hi MongoleeOne of your command-line switches is spelt incorrectly - it should be "--disassemble-zeroes", not "-disassemble-zeros", as confirmed by "aarch64-none-elf-objdump --help".For help with GCC, I suggest you use the GNU Toolchain Forum at community.arm.com/.../gnu-toolchain-forumStephen
Thank you so much. I would appreciate it!