本文主要是介绍gnu binutils,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
GNU binutils是一组二进制工具集。
binutils包含底下这些指令:
as | 汇编器 |
ld | 连接器 |
gprof | 性能分析工具程序 |
addr2line | 从目标文件的虚拟地址获取文件的行号或符号 |
ar | 可以对静态库做创建、修改和取出的操作。 |
c++filt | 解码 C++ 的符号 |
dlltool | 创建Windows 动态库 |
gold | 另一种连接器 |
nlmconv | 可以转换成NetWare Loadable Module目标文件格式 |
nm | 显示目标文件内的符号 |
objcopy | 复制目标文件,过程中可以修改 |
objdump | 显示目标文件的相关信息,亦可反汇编 |
ranlib | 产生静态库的索引 |
readelf | 显示ELF文件的内容 |
size | 列出总体和section的大小 |
strings | 列出任何二进制档内的可显示字符串 |
strip | 从目标文件中移除符号 |
windmc | 产生Windows消息资源 |
windres | Windows 资源档编译器 |
GNU Binutils
The GNU Binutils are a collection of binary tools. The main ones are:
- ld - the GNU linker.
- as - the GNU assembler.
But they also include:
- addr2line - Converts addresses into filenames and line numbers.
- ar - A utility for creating, modifying and extracting from archives.
- c++filt - Filter to demangle encoded C++ symbols.
- dlltool - Creates files for building and using DLLs.
- gold - A new, faster, ELF only linker, still in beta test.
- gprof - Displays profiling information.
- nlmconv - Converts object code into an NLM.
- nm - Lists symbols from object files.
- objcopy - Copies and translates object files.
- objdump - Displays information from object files.
- ranlib - Generates an index to the contents of an archive.
- readelf - Displays information from any ELF format object file.
- size - Lists the section sizes of an object or archive file.
- strings - Lists printable strings from files.
- strip - Discards symbols.
- windmc - A Windows compatible message compiler.
- windres - A compiler for Windows resource files.
Most of these programs use BFD, the Binary File Descriptor library, to do low-level manipulation. Many of them also use the opcodes library to assemble and disassemble machine instructions.
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.
Obtaining binutils
The latest release of GNU binutils is 2.27. The various NEWS files (binutils, gas, and ld) have details of what has changed in this release.
See the SOFTWARE page for information on obtaining releases of GNU binutils and other GNU software. The current release can be downloaded from http://ftp.gnu.org/gnu/binutils
If you plan to do active work on GNU binutils, you can access the development source tree by anonymous git:
git clone git://sourceware.org/git/binutils-gdb.git
Alternatively, you can use the gitweb interface, or the source snapshots, available as bzipped tar files via anonymous FTP from ftp://sourceware.org/pub/binutils/snapshots.
Bug reports
There is a bug-tracking system at http://sourceware.org/bugzilla/.
Mailing lists
There are three binutils mailing lists:
- bug-binutils@gnu.org ( archives)
- For reporting bugs. binutils@sourceware.org ( archives)
- For discussing binutils issues. binutils-cvs ( archives)
- A read-only mailing list containing the notes from checkins to the binutils git repository. (This list has an odd name for historical reasons.)
You can use this form to subscribe to the binutils@sourceware.org or binutils-cvs@sourceware.org mailing lists:
To subscribe to the bug-binutils@gnu.org mailing list, see the bug-binutils info page.
You may wish to browse the old mail archives of the gas2 and bfd mailing lists. These were the discussion lists for binutils until May 1999. Please do not send mail to them any longer.
Documentation
The documentation for binutils 2.27 is available.
A guide to porting the binutils to a new target has been contributed.
Return to GNU's home page.
Please send FSF & GNU inquiries & questions to gnu@gnu.org. There are also other ways to contact the FSF.
Please send comments on these web pages to binutils@sourceware.org, send other questions to gnu@gnu.org.
Copyright (C) 1998, 2000-2014 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.
Updated: Last modified: Mon Sep 23 08:45:03 BST 2014
这篇关于gnu binutils的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!