【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/p/10532149.html