UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 61489

SDK - How get the Disassembled code of an ELF file

Description

How can I see the disassembled code of an ELF binary file in SDK?

Solution

There are two ways to get the disassemble code from an ELF file.

Disassembly View

This method is only valid when a Debug session is running in the target.

In SDK, go to Window > Show View > Other and type disassembly, add the window, and it should then show the dissasembly view of the loaded ELF file.





OBJDUMP

Use the objdump binutil which displays information from object files to dump the disassembled code from a ELF file to a *.s file.

mb-objdump -D <ELF file name> > output.S;
arm-none-eabi-objdump -D <ELF file name> > output.S;
armr5-none-eabi-objdump -D <ELF file name> > output.S;
aarch64-none-elf-objdump -D <ELF file name> > output.S;

 

 

You can use a text-editor to view the test.s file:


 

Linked Answer Records

Master Answer Records

Answer Number Answer Title Version Found Version Resolved
66297 SDK - Design Assistant N/A N/A
AR# 61489
Date 06/11/2018
Status Active
Type General Article
Tools
  • Vivado Design Suite
Page Bookmarked