A complete suite of GNU software tools including C, C++, Fortran, Java Cross Compilers, GDB/Insight Debugger Simulator, and additional hosted utilities for embedded ARM7, ARM9, and XScale CPU applications development.

2/11/2004

Tool Building, Binary Utilities: Binutils 2.14

posted by mmitchel at 2/11/2004 11:40:00 AM

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.
gprof - Displays profiling information.
nlmconv - Converts object code into an NLM.
nm - Lists symbols from object files.
objcopy - Copys 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.

The following commands are issued to generate the target directory.

$ CFLAGS="-s -O3" export CFLAGS
$ PATH=/gnude/bin:$PATH export PATH
$ mkdir build-binutils; cd build-binutils; ../binutils-2.14/configure --target=arm-elf --prefix=/gnude --disable-shared --disable-nls --disable-win32-registry --enable-interwork --enable-multilib; make all install; cd ..