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
0
votes
0 answers
Error when buiilding Binutils for RISCV Cross Compiler
I keep getting two error messages alternatingly when building Binutils for a riscv compiler.
The first error message:
../../../bfd/doc/bfd.texi:219: @include bfdt.texi': No such file or directory. ../../../bfd/doc/bfd.texi:219: @include…

Gao
- 33
- 1
- 4
0
votes
1 answer
should we delete the build directories created in LFS for installing binutils-2.20?
I am in the part ( http://www.linuxfromscratch.org/lfs/view/6.6/chapter05/binutils-pass2.html)
( http://www.linuxfromscratch.org/lfs/view/6.6/chapter05/binutils-pass1.html)
they ask me to build binutils again? i dont understand…

Rohan Bojja
- 655
- 1
- 16
- 35
0
votes
1 answer
Get the delayed-load function binding correctly written into the image executable (dlltool)
I've been studying the delayed-load (delayimp) pipeline as a possible backend for the missing RPATH functionality on Windows, by the following example:
#include
int __declspec(dllimport) foo(int arg);
int main(int argc, char* argv[])
{
…

Dmitry Mikushin
- 1,478
- 15
- 16
0
votes
1 answer
Hello Everyone, I am trying to cross compile bintuils on ubuntu for a custom OS, when i am compiling i get the error multiple target patterns. Stop
here is the error
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles…

varun_koganti
- 51
- 3
0
votes
2 answers
What are the "STANDARD SYSTEM DIRECTORIES" that gcc refers to? (On a unix like system)
I've been exploring compilers and cross compilers. I'm reading the GCC manual.
Specifically, there are these statements in the manual that I have queries regarding:
The linker searches a standard list of directories for the library. The directories…

Suraaj K S
- 600
- 3
- 21
0
votes
1 answer
Is it possible to build GCC Cross Compiler and Binutils with multiple targets?
I know how to configure GCC and Binutils for a single target, --target=i686-elf, but I am wondering if is it possible to configure them for multiple targets, i.e both i686-elf and Win32 PE executables.

Furkan Çetinkaya
- 195
- 7
0
votes
1 answer
Amazon Linux 2 / Red Hat Linux Enterprise : binutils won't install 'ld' bin
Trying to install the mongodb extension on Amazon linux 2 (which is based on Red Hat Linux Enterprise) but I'm missing the ld extension.
I have the binutils installed, but no ld bin :(
binutils-2.29.1-30.amzn2.x86_64.rpm …

Julien Pessey
- 13
- 4
0
votes
1 answer
why must gnu binutils be configured for a spefic target. What's going on underneath
I am messing around with creating my own custom gcc toolchain for an arm Cortex-A5 cpu, and I am trying to dive as deeply as possible into each step. I have deliberately avoided using crosstool-ng or other tools to assist, in order to get a better…

Daniel
- 428
- 3
- 8
0
votes
1 answer
stack overflow when pass -pie flags to gcc
I'am trying to port fedora to mips cpu,some packages like "sudo" "krb5", following is the Makefile of "sudo" generated by configure which "-fpie" "-pie" flags was auto added.
SUDO_LIBS = -laudit -lselinux -lutil -lpam -ldl -lldap $(LIBS)…

ycboy
- 31
- 4
0
votes
1 answer
Get frames from a shared library (.SO) with STABS
I have an Android SO library with STABS debug info, as opposed to DWARF. I'd like to get the call frame information from it, similar to what ...-readelf --debug-dump=frames-interp outputs.
With most NDK built libraries, readelf does the trick, but…

Seva Alekseyev
- 59,826
- 25
- 160
- 281
0
votes
1 answer
Building binutils: having problems with sed
I was trying to build binutils as I was building the mingw-w64 toolchain, when I run into this weird problem involving sed when configuring (configure output). sed --version returns version 4.5. Am I doing anything wrong?

Kurumi Gaming
- 121
- 4
0
votes
1 answer
Building binutils on ARM64 - make check fails - section ordering
Compiling binutils-2.33.1 for ARM64 (aarch64*--).
The build passes but I'm getting strange issues in some programs. GNU MP for example core dumps when building its generator. Handling of long's seem broken.
When I run make check on the…

Halsafar
- 2,540
- 4
- 29
- 52
0
votes
1 answer
Filter the output of GNU nm by section
I'm trying to identify the largest symbols in an .elf file for each memory section (.text, .data, .bss). So far I'm using GNU nm to get the largest symbols:
nm foo.elf --size-sort --reverse-sort --radix=d --demangle --line-numbers
Is there a…

S. Marti
- 313
- 1
- 5
- 13
0
votes
0 answers
How can I be sure a library doesn't use wchar_t
While I worked to link a library on a new platform, I got the following error:
foo.o uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
I searched stackoverflow and found this thread: How to…

yeger
- 351
- 2
- 15
0
votes
0 answers
Meaning of Endianess in "objcopy -O ..."? Does binary data get mangled?
after reading this answer I immediately thought to myself:
Why exactly do I have to tell whether it's Little or Big Endian? Does it mean that instead of simply copying my binary input data, objcopy mangles the data in some way, depending on the…

0xC0000022L
- 20,597
- 9
- 86
- 152