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
TensorFlow compilation error: Expecting string instruction after 'rep'
I'm trying to compile TensorFlow from source on OSX 10.10, following these instructions so that I can use the GPU. I'm using GCC 4.8.5.
This is the error that I get during compilation:
/var/tmp//cccfsYPu.s:2774:expecting string instruction after…

Max Gillett
- 177
- 3
- 14
1
vote
1 answer
Error compiling against libopcodes
I'm following some code from here which is as follows:
The OP says that you can link with -lbfd -lopcodes.
However, for OpenSuSE I've found that for libbfd I need -lbfd -liberty -lz -ldl
When trying to compile, here is my results:
make
gcc…

SailorCire
- 548
- 1
- 7
- 24
1
vote
1 answer
How can I build binutils for Android?
I am building binutils for my x86 Android(Remix OS).
I am using NDK toolchain.
I built 'make' successfully with using this configure command:
./configure --host=x86_64-linux-android --prefix=/home/newnis/remixBin/
I tried same thing on binutils.…

Gippeumi
- 251
- 2
- 18
1
vote
0 answers
Output relocatable section data from linker script
Using commands like BYTE or LONG, it is possible to include explicit bytes of data in an output section from a linker script. The linked page also describes that those commands can be used to output the value of symbols.
I would have expected that…

mtvec
- 17,846
- 5
- 52
- 83
1
vote
1 answer
Wildcard doesn't work in Mingw (Windows) GNU ld script
I am using the tool chain provided by GCC ARM Embedded. It seems ld (4.9-2015-q3-update) cannot handle wild card (*) with Windows path correctly.
For example, the code snippet below
.foo_v0 { obj\*(.s_foo_v0) }
won't find files under directory obj,…

chenwj
- 1,989
- 2
- 16
- 30
1
vote
1 answer
Binary files format (ARM GCC)
what contains a binary file which come from a ARM GCC for ARM devices?
Is there inside it some information about destination address which write to?
Or just native, pure, content of program without information about memory location?
If i have a…

MrBit
- 290
- 4
- 20
1
vote
1 answer
What is the meaning/purpose of the "=" that sometimes appears in the SEARCH_DIR command in binutils' ldscripts?
When I build binutils, the ldscripts folder contains several files that are used by ld to determine how to link objects for a particular platform. In the scripts I see lines…

user1261695
- 41
- 1
- 5
1
vote
0 answers
binutils-2.20 install failed
I am trying to install binutils in my mac.
configure works:
sudo ./configure --target=i386-elf --disable-nls --disable-werror
but the make command gives me a fatal error:
i386-dis.c:6671:21: fatal error: bracket nesting level exceeded maximum of…

mark_stock
- 61
- 5
1
vote
0 answers
gcc replacing default library search paths
I want to make a "bare bones" Linux environment, so first I compile and install the Linux kernel to a directory called /distro (on the "host" machine).
After configuring the boot loader, I am able to boot into this kernel and it naturally pauses…

Cinolt Yuklair
- 331
- 1
- 10
1
vote
1 answer
How could I remove a certain .o section out of .a file
I have a .a file with a bunch of symbols and objects. There is a section which
libunwind.o:
00000184 T _Unwind_Backtrace
00000160 T _Unwind_ForcedUnwind
000000f4 T _Unwind_RaiseException
00000118 T _Unwind_Resume
0000013c T…

seanxiaoxiao
- 1,282
- 2
- 11
- 23
1
vote
1 answer
what are the common symbols in objdump?
I'm reading the documentation of objdump in :
objdump manual
and in the line that specifies the output of the symbol table for ELF based files entries with the -t option, there's one line that i would like to better understand. I copied that part…

Mike
- 331
- 4
- 13
1
vote
0 answers
How to re-assemble disassembled code
I have an old lib created by old binutils. I can't link this lib with my new binutils (there was a bug in the my old binutils that caused functions names to stay as they compiled (no prefix was added) instead of adding the prefix "_" e.g. function…

yehudahs
- 2,488
- 8
- 34
- 54
1
vote
1 answer
can't understand how to use sim folder in binutils
I am porting binutils to a new arch. What is the sim folder for ? and how can I use it ? If I understand correctly, the sim folder suppose to build some kind of simulator for the new arch but I can't find any information about it. Is there more…

yehudahs
- 2,488
- 8
- 34
- 54
1
vote
1 answer
Forcing ld to resolve weak references at ld time
Consider a program like:
#include
void foo() __attribute__((__weak__));
int main()
{
printf("%p\n", (void *)foo);
if (foo) foo();
}
If compiled as a regular, non-PIE dynamic-linked executable, the non-existence of foo is resolved…

R.. GitHub STOP HELPING ICE
- 208,859
- 35
- 376
- 711
1
vote
2 answers
How to get information from objdump
I encounter a problem when reading information dumped out from an executable file in linux.
The information is as follows:
804a0ea: 04 08 add $0x8, %al
...
804a0f4: a6 cmpsb %es:(%edi),%ds:(%esi)
I have two…

Summer_More_More_Tea
- 12,740
- 12
- 51
- 83