The GNU binary utilities. A collection of tools for operating on object files. Most notably they include the GNU assembler and linker. They are typically used in conjunction with the GNU compiler collection (GCC).
Questions tagged [binutils]
418 questions
4
votes
1 answer
Why is binutils-gdb failing to build from MSYS2?
I'm trying to build binutils-gdb on a Windows 10 PC from within the msys2 environment.
git://sourceware.org/git/binutils-gdb.git
Most of the code is compiling OK, but libiberty is failing to build with errors in pex-win32.c:
./pex-win32.c:121:10:…

Bill Morgan
- 538
- 2
- 14
4
votes
1 answer
How to properly avoid warning about sh_link not set for section ".ARM.exidx"?
If in my linker script I have this:
.ARM.exidx :
{
. = ALIGN(4);
PROVIDE(__exidx_start = .);
*(.ARM.exidx* .gnu.linkonce.armexidx.*);
. = ALIGN(4);
PROVIDE(__exidx_end = .);
} > rom AT > rom
I get following warning when…

Freddie Chopin
- 8,440
- 2
- 28
- 58
4
votes
2 answers
Is there an advantage to upgrade Binutils from 2.16.1 to 2.19? Why?
In the PSPSDK (Homebrew) we are using the Binutils 2.16.1 to assemble and link the code for the PlayStation Portable, however that release is getting quite outdated (3 versions have superseded it). The community and me have been updating the GCC and…

Paulo Lopes
- 5,845
- 22
- 31
4
votes
1 answer
Is it possible to change the value of CONSTANT(MAXPAGESIZE) in a linker script
I am using ld with a custom link script (modified from the default script used by gcc) and I noticed that the default value for CONSTANT(MAXPAGESIZE) on ARM is 64KiB. I need this value to be 4KiB.
I am aware that I can change this value on the…

Vinz
- 5,997
- 1
- 31
- 52
4
votes
1 answer
get callstack of c++ application including shared libraries
I wrote a small function to create a callstack in c++, using bfd to resolve the addresses. It works fine and I get detailed information (source file and line) for all functions inside the current application, but I get no information what-so-ever…

example
- 3,349
- 1
- 20
- 29
4
votes
1 answer
Trying to build binutils with --enable-gold
Following instructions from this site: http://llvm.org/docs/GoldPlugin.html
From the command:
../binutils/configure --enable-gold --enable-plugins --disable-werror
I get a warning saying:
configure: WARNING: unrecognized options:…

drum
- 5,416
- 7
- 57
- 91
4
votes
2 answers
Key mapping in GDB
Is it possible to define an arbitrary key combination to a command in GDB? I would like to know if there is something like the VIM map command. For example, I would like to map to next, to step, and so on..

JohnTortugo
- 6,356
- 7
- 36
- 69
4
votes
0 answers
References to FFTW not resolved when linking with --as-needed
I have a linking problem which I cannot explain. The program contains references to FFTW functions in a file called fft.cpp. The linking command is as follows (I skipped the rest of object files):
/usr/bin/g++ common/CleanerND.cpp.2.o ...…

Krzysztof Kosiński
- 4,225
- 2
- 18
- 23
4
votes
1 answer
GCC What's the right inline assembly constraint to operate with ARM VFP instructions?
I want to load the value of a double precision register (d8) into a C variable on ARM platform with a toolchain (gcc-4.6) that comes with the Google NDKv8b. My ARM machine is a Samsung Galaxy S2 (it has VFPv3 and NEON). The GCC documentation says…

Juan Gómez
- 93
- 1
- 9
4
votes
2 answers
Objcopy, how it makes binary output?
As I'm new to binutils, gcc ant others, I have some general questions, anwsers on which I havn't found in manuals.
I'm using C and assembly(nasm syntax) and I need raw binary files on output. First of all, I compile my code to objec file with…

hrust
- 734
- 1
- 11
- 34
3
votes
2 answers
Is there a tool to obtain info on a particular symbol in an ELF .o or executable file?
I'm looking for a convenient way (for use in a build testing script) to query individual symbols in an object file. Is there a tool that can answer the question (preferably by its exit status) "does symbol X exist in file Y?" or do I just need to…

R.. GitHub STOP HELPING ICE
- 208,859
- 35
- 376
- 711
3
votes
1 answer
Macports installing binutils
I'm trying to install gnu ld, via macports, on Lion.
I have already installed gcc 4.6 from macports. However I need to create elf binary form a binary file,
which I posted as seperate question here
I installed binutils from macports, it seems as…

Satpal
- 309
- 2
- 8
3
votes
1 answer
gnu-binutils-strings utf-8 instead of utf-16 or ascii
I've noticed gnu-binutils-strings can printout utf-16 content in a file - is it possible for the program to print out utf-8 strings? if so, which arguments are appropriate? i'm working in a python environment using subprocess and would like to work…

ct_
- 1,189
- 4
- 20
- 34
3
votes
3 answers
MacOS 12.1 cannot find my brew install of GNU binutils
I want to use GNU binutils to inspect an executable on MacOS 12.1. I did a
% brew install binutils
and it seemed to go fine. First I tried just a
% readelf
but was given:
zsh: command not found: readelf
Then I tried checking on…

zeroclaim
- 57
- 2
- 7
3
votes
0 answers
How to prevent strip from removing ar archive's index?
I wrote a library that contains a.c and b.c, and another program c.c that uses this library. I have archived the library using ar to distribute it. Here are the commands I use:
gcc -g -c -o a.o a.c # Compile a.c
gcc -g -c -o b.o b.c # Compile…

Eric Stdlib
- 1,292
- 1
- 18
- 32