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
1
vote
0 answers
Configure Errors While Trying to Compile binutils
I'm trying to build a cross-compiler, but for some reason binutils is failing to compile. When I run make all, this is what I get after a while:
loading cache .././config.cache
checking whether to enable maintainer-specific portions of…

Nathan Campos
- 28,769
- 59
- 194
- 300
1
vote
1 answer
Change gcc/binutils --prefix
I once build and installed gcc and binutils with a wrong prefix (--prefix=/home/.../usr) passed to the configure script.
Now I reconfigured, rebuilt and reinstalled gcc and binutils with the right prefix (--prefix=/usr), however compiling always…

Paul Wolfger
- 106
- 1
- 1
- 7
1
vote
1 answer
Permission error in Binutil while "make install"
I'm working on LFS7.2. I'm getting permission error while "make install" the binutil package, but I could successfully able to create folder in all the 3 dir (source,tools,usr) with the user lfs. I rollback and reperformed the chaper 4.1 to 4.4, but…

Prabhu Are
- 463
- 2
- 7
- 15
1
vote
1 answer
Cygwin binutils configure Cached Incorrectly
I'm trying to install binutils in a Cygwin environment.
My path was very screwed up (e.g. one line of configure's output was:
"checking for ld... (cached)…

geometrian
- 14,775
- 10
- 56
- 132
1
vote
2 answers
ELF Relocation - where came from these symbols?
In my Debian x86 32 Bits, when I do readelf -r /usr/lib/libstdc++.so.6 | grep pthread, I get this output:
000eceac 00006206 R_386_GLOB_DAT 00000000 pthread_cancel
000ed058 00000807 R_386_JUMP_SLOT 00000000 pthread_cond_destroy
000ed148 …

JohnTortugo
- 6,356
- 7
- 36
- 69
1
vote
1 answer
Arch Linux doesn't have i586-elf-gcc or i586-elf-gcc
I'm attempting to create a C kernel initially following this tutorial: http://wiki.osdev.org/Bare_Bones
However, my system doesn't have i586-elf-gcc or i586-elf-ld. I'm really not sure where I can find these, or whether they are already on my…

Max Smashdidypwned Lay
- 375
- 4
- 14
1
vote
1 answer
How do I find which version of gcc corressponds to which version of binutils?
Exactly as the question sounds.
If there isn't a generic way to answer this question for any given version pair, can someone at least answer the specific question of whether gcc 3.4.6 and ld 2.15.92.0.2 correspond to each other?
Thanks.
I'm…

owagh
- 3,428
- 2
- 31
- 53
0
votes
1 answer
Weakly defining function at link-time, and testing for override
(Environment: gcc 4.6, c++11, glibc 2.13, binutils 2.21)
Please consider the follow "linking" demo for background:
foo.h:
#pragma once
#include
void foo();
foo1.cpp:
#include "foo.h"
void foo()
{
std::cout <<…

Andrew Tomazos
- 66,139
- 40
- 186
- 319
0
votes
2 answers
Native toolchain issue on Macos 10.6.8 (Snow Leopard)
Below is the description of the issue.
I marked it all as a code to avoid the implicit formatting that StackOverflow does.
That is pretty annoying to have to deal with the Wiki-like markup language
when I know exactly myself how I want to format my…
0
votes
0 answers
(lib64_libmingwex_a-dirent.o):(.text+0x2bc): undefined reference to `__strcpy_chk'
I'm trying to build the cygwin toolchain for Linux but When compiling Binutils I got this error.
/usr/lib/gcc/x86_64-w64-mingw32/12.2.1/../../../../x86_64-w64-mingw32/bin/ld:…

7dog123
- 9
- 6
0
votes
0 answers
Binutils only build "nm"
Currently i'm building Binutils with MSYS2 and MinGW on Windows.
Is there a way to only build nm? I cant find documentation on this topic.
I tried to disable some directoires with --disable-DIR but this does not speed up the build process too much…
0
votes
0 answers
MIPS binutils on NixOS?
I'm wondering if there is an existing NixOS package for the MIPS binutils toolchain? In other words, on Ubuntu I would run: sudo apt install binutils-mips-linux-gnu, but how do I get tools like mips64-linux-gnu-ld and mips64-linux-gnu-gcc in…

Erotemic
- 4,806
- 4
- 39
- 80
0
votes
0 answers
How can I resolve a 'ld: .eh_frame_hdr refers to overlapping FDEs' error during final linking on CentOS with binutils 2.40?
I am trying to build a project with various third party libraries like cryptopp, openssl, curl, to name a few.
Details :
OS : CentOS-5.11
GCC : 12.3.0
binutils : 2.40 (./configure --prefix= --enable-gprofng=no)
I get this error during the final link…

phantom
- 1
- 1
0
votes
0 answers
‘YYEMPTY’ undeclared (first use in this function); did you mean ‘YYCOPY’?
I'm trying to build gas and gold linkers.
But while building them I'm facing the following errors:
I'm using gcc (Ubuntu 8.4.0-3ubuntu2) 8.4.0 to build it.
yyscript.c:2204:12: error: ‘YYEMPTY’ undeclared (first use in this function); did you mean…

NobinPegasus
- 545
- 2
- 16
0
votes
0 answers
How to correctly build GNU binutils in debug mode?
I'm trying to build GNU binutils in debug mode as:
$ mkdir debug
$ cd debug
$ ../configure --prefix=/dbg CPPFLAGS=-DDEBUG CFLAGS="-g -O0" CXXFLAGS="-g -O0" --disable-gdb --disable-ld
$ make -j8
I debug objdump as:
$ gdb --args…

pmor
- 5,392
- 4
- 17
- 36