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
1 answer
clickhouse-server install failed on CentOS6 with libbfd package error
I'm testing clickhouse. Finally I installed ClickHouse on my virtual machine. But I've got some problem to make it.
--> Finished Dependency Resolution
Error: Package: clickhouse-server-1.1.54236-4.el6.x86_64 (clickhouse)
Requires:…

Chan
- 1
0
votes
1 answer
How do you update the GNU linker for an Android NDK?
I am working on a native Android project using NDK r12b. This NDK (and it looks like all others since) ships with a prebuilt GNU linker version 2.25. We have recently tried to pull up lots of our project's submodules which has introduced a build…

pelotron
- 95
- 3
- 13
0
votes
1 answer
'AS' align plus incbin is not producing the expected alignment
I'm having problem at making my personal project work on real hardware due to data alignment problems; due to the way the hardware works, the images must by 16-bit aligned.
I have tried to specify the alignment through the '.align'…

Haroldo_OK
- 6,612
- 3
- 43
- 80
0
votes
1 answer
Use of ifdef in gas assembly language
I have following assembly file mov.s
.text
.macro test_3
and $3,%eax
.endm
movz:
movzb %al,%ax
movzb (%eax),%ax
movzb %al,%eax
movzb (%eax),%eax
.ifdef test_3
movzb33 %al,%rax
…

Akshay
- 159
- 1
- 9
0
votes
1 answer
"ar" tool allows creation of an empty library
The classical "ar" tool from Binutils does not fail if some library specified in the command line does not exist.
It shows only the message "ar: <_library_name_>.a: No such file or directory", but the return code is zero.
This makes sometimes very…

Alexander Samoylov
- 2,358
- 2
- 25
- 28
0
votes
0 answers
What are the standard MIPS macros?
I am learning how to use the mips M4k processor but I am having a terrible time finding the standard mips assembler macros for instructions like LI, the imgtec instruction manuals are completely devoid of any mention of these. Would appreciate a…

FourierFlux
- 439
- 5
- 13
0
votes
0 answers
Make error: garbage following instruction -- 'dsb 0xF'
I'm trying to build the Contiki OS for a custom platform (based on the EZR32LG MCU) with GCC compiler.
When I make the project it runs with a few warnings about '#pragma GCC diagnostic'. (I don't know if this is relevant, but I'm just providing the…

boortmans
- 1,138
- 2
- 24
- 40
0
votes
1 answer
unable to build binutils on macosx
I need to build ld from sources on OSX 10.12.3 (16D32). I cloned the last version from git://sourceware.org/git/binutils-gdb.git and tried to build it:
./configure --prefix=/usr --disable-werror (there are a lot of warnings, so I disable…

AC-93
- 85
- 1
- 7
0
votes
1 answer
Correct usage of strip tool
Unpacked Linaro GCC 6.2-2016.11 toolchain occupies almost 3.4 GB of disc space and I want to make it smaller. My target is armv7-a+vfpv3+hard_float so I have already removed things I do not need (like ld.gold, libraries for Thumb, v8-a, v7ve etc)…

yurko
- 623
- 1
- 7
- 21
0
votes
1 answer
Unable to make for buildroot (checking for suffix of object files... configure: error)
I am trying to make buildroot toolchain for cross compilation on Raspberry Pi. ( using buildroot-2016.11)
When I run make, I receive the following error:
checking for suffix of object files... configure: error: in…

Balaji Kulkarni
- 145
- 2
- 2
- 9
0
votes
1 answer
Weired behaviour of GNU AS on divu MIPS instruction
In order to test our MIPS implementation on a FPGA, I wrote a couple of assembler test code. I'm using mips-linux-gnu-as for compilation.
The following code is to test the divu implementation, from the code, the condition beq $t2, $t1, label1 is…

Ali Abdallah
- 45
- 5
0
votes
1 answer
error: missing expected TLS relocation in binutils-2.27/gold/testsuite
I'm compiling binutils-2.27 with gcc 5.3.0.
Here are the configure options:
../binutils-2.27/configure --prefix=$FOO --build=x86_64-redhat-linux --disable-multilib --with-gmp=$FOO --with-mpfr=$FOO --with-mpc=$FOO --with-isl=$FOO --with-system-zlib…

SU3
- 5,064
- 3
- 35
- 66
0
votes
1 answer
Find what's consuming .bss using gcc or binutils
Is there a tool gcc or binutils that can show me the big consumers of .bss? I have tried to sum up sizes from objdump -t bin-file | grep bss but it does not add up to the same as when I do size bin-file.
I am trying to find out where the ram is…

evading
- 3,032
- 6
- 37
- 57
0
votes
2 answers
Why doesn't 'ld' warn when linking '-mthumb-only' object files without '-mthumb'?
In my setup using gcc-arm-none-eabi 4.8 and binutils 2.26 I get pretty undefined behavior when compiling the object files separately with -mthumb but leaving that flag out in the final linking step using ld without getting any warning from the…

stefanct
- 2,503
- 1
- 28
- 32
0
votes
1 answer
Issue compiling with f77 on OSX 10.11
I have been trying to run this model, written some decades ago by someone else. I've built the libraries, but when I try to actually run the program, I get the following error:
f77 -o mimics1.5 ../source/*.o trunk_hght_f.f
trunk_hght_f.f:
…

Cynthia GS
- 522
- 4
- 20