GNU BinUtils
1.1、GNU BinUtils简介
是什么 ?:a collection of tools for handling binary files.
开发语言:C
官方主页:https://www.gnu.org/software/binutils
1.2、通过包管理器安装GNU BinUtils
操作系统包管理器安装命令
WindowsChocolateychoco install -y MinGWMinGW-w64
macOSHomeBrewbrew install binutils
GNU/LinuxLinuxBrewbrew install binutils
aptsudo apt-get install -y binutils
CentOSyumsudo yum install -y binutils
dnfsudo dnf install -y binutils
openSUSEzyppersudo zypper install -y binutils
Alpine Linuxapksudo apk add binutils

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm binutils
Gentoo LinuxPortagesudo emerge binutils
1.3、通过源码安装GNU BinUtils 

step1、安装依赖

下载时cURL
解压时tarxz
编译时POSIX shGNU CoreUtilsmakegcc
运行时glibc ( libc.solibpthread.sold-linux-x86-64.so )

step2、使用curl下载BinUtils源码包 (

curl -LO https://mirrors.tuna.tsinghua.edu.cn/gnu/binutils/binutils-2.29.tar.xz

step3、使用tar解压BinUtils源码包

tar vxf binutils-2.29.tar.xz

step4、进入binutils-2.29目录

cd binutils-2.29

step5、查看binutils-2.29目录中的内容

step6、配置、编译、安装

./configure --prefix=/usr && make && sudo make install
1.4、GNU BinUtils中包含的命令
命令作用
asthe GNU assembler
ldthe GNU linker
golda new, faster, ELF only linker, still in beta test
ara utility for creating, modifying and extracting from archives
ranlibgenerates an index to the contents of an archive
nmlists symbols from object files
stripdiscards symbols
c++filtfilter to demangle encoded C++ symbols
objcopycopies and translates object files
objdumpdisplays information from object files
readelfdisplays information from any ELF format object file
gprofdisplays profiling information
stringslists printable ASCII strings from files
sizelists the section sizes of an object or archive file
addr2lineconverts addresses into filenames and line numbers
nlmconvconverts object code into an NLM
dlltoolcreates files for building and using DLLs
windmca Windows compatible message compiler
windresa compiler for Windows resource files