Binfile disassembly method of ARM

Source: Internet
Author: User

From: http://blog.csdn.net/kikilizhm/article/details/7771573

Recently debugged ubootCodeIn the new version of uboot, lowlevel_init function is empty, and no link to lowlevel_init.o is found in the Link file. Two lights were added before BL lowlevel_init and found that the parts after BL were not executed.ProgramHave you run this function. I found some methods provided by some friends when I searched for binfiles on the Internet, which is very useful.

You can use the arm-Linux-objdump in the arm-Linux tool chain for disassembly.

CD to the directory where the binfile is located, and enter the following command line:

Arm-Linux-objdump-D-B Binary-M arm XXX. Bin> XXX. ASM

Parameters:
-D decompile all code
-M host type, arm
-B file format, binary

Only one-D parameter is required for an elf file.

You can decompile XXX. bin to the XXX. ASM file.

From: http://blog.csdn.net/kikilizhm/article/details/7771573

When debugging uboot Code recently, the new version of uboot and lowlevel_init functions are used, and no link to lowlevel_init.o is found in the Link file. We added two lights before BL lowlevel_init and found that the parts after BL were not executed, so we wanted to see if the specific program was running this function. I found some methods provided by some friends when I searched for binfiles on the Internet, which is very useful.

Use the arm-Linux-objdump in the arm-Linux tool chain for disassembly.

CD to the directory where the binfile is located, and enter the following command line:

Arm-Linux-objdump-D-B Binary-M arm XXX. Bin> XXX. ASM

Parameters:
-D decompile all code
-M host type, arm
-B file format, binary

Only one-D parameter is required for an elf file.

You can decompile XXX. bin to the XXX. ASM file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.