Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the objdump command in linux to view the gcc tool composed of object files

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Do not know how to use the objdump command in linux to view the gcc tool composed of object files? In fact, it is not difficult to solve this problem. Let the editor take you to learn how to solve it. I hope you will gain a lot after reading this article.

The objdump command is a gcc tool that looks at the object file or the composition of the executable object file.

Objdump is a bit like a tool like Quick View, which allows you to learn more about the additional information that binaries may contain in a readable format.

Syntax format: objdump [parameters] [file]

Common parameters:

-a displays the member information of the archive, similar to ls-l lists lib*.an information-g displays debug information-d disassembles those specific instruction machine codes from objfile section-D is similar to-d, but disassembles all section-f displays the overall header summary information of each file in the objfile-H short help information-s displays the complete contents of the specified section. By default, all non-empty section will be displayed

Reference example

View the information in the archive file:

[root@linuxcool] # objdump-a libmy2.a

Display the contents of the text section in the mytest.o file:

[root@linuxcool ~] # objdump-- section=.text-s mytest.o Thank you for reading this article carefully. I hope the editor will share the content of the gcc tool made up of target documents using the objdump command in linux. At the same time, I also hope that you can support it, pay attention to the industry information channel, find out if you encounter problems, and learn detailed solutions.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report