Questions tagged [binutils]
Binutils is a GNU project containing a set of low level assembly and debugging tools, including GNU as, GDB and others. https://sourceware.org/binutils/
11 questions
0votes
1answer
69views
GNU assembler alternatives
I am trying to build my system from scratch, since I really like the idea of atomicity of each program in unix-like approach, I would like to preserve it as much as possible in my build. Since GNU ...
-1votes
1answer
149views
Errors when unpacking binutils-common
So when i update kali linux with sudo apt update it shows this Get:1 file:/run/live/medium kali-last-snapshot InRelease Ign:1 file:/run/live/medium kali-last-snapshot InRelease Get:2 file:/run/live/...
0votes
1answer
67views
What are the possible scl values in objdump?
The objdump man page gives the following example output from objdump -t: The format of the output depends upon the format of the file being dumped, but there are two main types. One looks like this: [...
0votes
1answer
1kviews
what target flag should I set to cross compile arm 32 bit code in gcc?
I'm trying to build a cross compiling build server for some 32 bit arm devices, where the architecture is: (from uname -m) "armv5tejl" I have to specify the target for binutils, and gcc, ...
0votes
1answer
242views
What is the .xs and .x* files in ldscripts?
What are these files /lib/x86_64-linux-gnu/ldscripts/elf32_x86_64.xs /lib/x86_64-linux-gnu/ldscripts/elf_x86_64.xs /lib/x86_64-linux-gnu/ldscripts/elf_i386.xs /lib/x86_64-linux-gnu/ldscripts/elf_iamcu....
0votes
1answer
91views
What are you supposed to do for "pass 2" sections in LFS
I'm trying to build an LFS system but I've hit a roadbloack, what am I supposed to do for the 2nd passes. I thought maybe I had to re-untar again then compile their but that didn't make a new ...
3votes
1answer
1kviews
How to build only one program in binutils
Since there are many programs that are not related to my interests, I'd like to build a specific program in GNU binutils on Ubuntu. Program means that one binary file (e.g., ar, objcopy) for example, ...
6votes
1answer
4kviews
Disassemble ELF binary without section headers (program headers only) using objdump
I've got an ELF binary that contains nothing but two LOAD segments in the program header table, one for code and one for data. readelf -a tells me there's no section headers. If I attempt do ...
2votes
1answer
1kviews
Linux From Scratch: Error while compiling binutils 2.32
I am working on Linux from Scratch and currently, I am on this page. While compiling binutils-2.32, I am getting this error: lfs@pop-os:/mnt/lfs/sources/binutils-2.32/build$ ../configure --prefix=/...
2votes
1answer
857views
How to build and run the GNU GAS assembler test suite?
I'm at Binutils tag binutils-2_31, and there is a directory: gas/testsuite with some tests that I'm interested in. I've compiled the entire binutils with: ./configure make but the directory gas/...
10votes
2answers
18kviews
What tool to use to view an object file?
I'm reading an old book on linkers and loaders and it has images of object code. But I can't figure out what tools are used to display the contents of these files. I'd appreciate if someone could ...