【Tools系列】之GNU Binutils工具集使用介绍
DATE: 2019-2-27
1、GNU Binutils简介和下载
简介: Binutils是GNU Binary Utilities的简写,是一组专门用于处理二进制数据的工具集,主要包括as,ld,addr2line,ar,nm,objdump,size,objcopy,strip,gprof,readelf等。
官方网址: https://www.gnu.org/software/binutils/
获取方式:
(1)FTP:https://ftp.gnu.org/gnu/binutils/
(2)GIT:git clone git://sourceware.org/git/binutils-gdb.git
2、GNU Binutils使用说明
详细文档: https://sourceware.org/binutils/docs-2.32/binutils/index.html
• ar: Create, modify, and extract from archives
• nm: List symbols from object files
• objcopy: Copy and translate object files
• objdump: Display information from object files
• ranlib: Generate index to archive contents
• size: List section sizes and total size
• strings: List printable strings from files
• strip: Discard symbols
• c++filt: Filter to demangle encoded C++ symbols
• cxxfilt: MS-DOS name for c++filt
• addr2line: Convert addresses to file and line
• windmc: Generator for Windows message resources
• windres: Manipulate Windows resources
• dlltool: Create files needed to build and use DLLs
• readelf: Display the contents of ELF format files
• elfedit: Update ELF header and property of ELF files
• Common Options: Command-line options for all utilities
• Selecting the Target System: How these utilities determine the target
• Reporting Bugs: Reporting Bugs
• GNU Free Documentation License: GNU Free Documentation License
• Binutils Index: Binutils Index
3、将Binutils移植到不同架构的方法
https://sourceware.org/binutils/binutils-porting-guide.txt
The binutils have been ported to most major Unix variants as well as Wintel systems, and their main reason for existence is to give the GNU system (and GNU/Linux) the facility to compile and link programs.
Windows平台上的GNU工具集:GnuWin32使用以及windows下gnu makefile编写
4、GNU Binutils实战
待补充
THE END!
本文为博主原创文章,未经博主允许不得转载。若允许转载,请注明来源https://www.cnblogs.com/SoaringLee/,否则保留追究法律责任的权利!
另外,本人提供付费咨询服务并长期承接各类毕设以及外包项目。联系QQ:2963033731。加Q备注:CNBLOG外包