cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
chen71730
Observer
Observer
4,625 Views
Registered: ‎03-17-2010

question on microblaze disassembler

Hi!

 

Option "-S" of microblaze disassembler is used for intrmix source code with disassembly.

 

Why  are the below messages appeared when I use this option?

 

 

the command is:

--------------------------------------------------------------------------------------------

powerpc-eabi-objdump -Ss TestApp_Peripheral.elf >> TestApp_Peripheral.dis

 

 

the message is:

--------------------------------------------------------------------------------------------

powerpc-eabi-objdump: Can't disassemble for architecture UNKNOW!

 

 

.elf file had already been generated successfully. What's the matter about this message?

 

can anyone tell me? thank you so much.

 

 

0 Kudos
3 Replies
vsiva
Xilinx Employee
Xilinx Employee
4,610 Views
Registered: ‎01-18-2008

You might want to post the header that you see when you do:

 

powerpc-eabi-readelf -a executable.elf 

 

Specifically, make sure that it says that the machine is PowerPC. 

0 Kudos
jagron
Adventurer
Adventurer
4,603 Views
Registered: ‎01-04-2008

The power-pc-eabi tools are for PowerPC 405/440 ELF files.  To work with MicroBlaze files, one must use the mb-tools, i.e.

 

mb-objdump

mb-gcc

etc.

 

-Jason

0 Kudos
chen71730
Observer
Observer
4,581 Views
Registered: ‎03-17-2010

Thank you both. Sorry! I seem to make a logical mistake.

 

 

I can get disassembly code after using the following command

-----------------------------------------------------------------------------------------

mb-objdum -S TestApp_Peripheral.elf >> TestApp_Peripheral.dis

 

 

Thank you for your help. :)

 

0 Kudos