Questions tagged [binutils]

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).

418 questions
0
votes
0 answers

binutils-relocation types in the program linking process for arm32 target

Recently, I have been studying the relocation types in the program linking process for arm32 target. I have tested some little programs to produce different relocation types to analyze. And I found some of the relocation types are difficult to…
0
votes
0 answers

How to determine if an object is compiled with -fPIC?

I'd like to know whether an object or .a file is compiled with -fPIC enabled or not. Is there a way to know it (on both Linux and Mac OS X)? Thanks.
user1424739
  • 11,937
  • 17
  • 63
  • 152
0
votes
0 answers

How to determine Ram/Rom usage of elf using binutils?

I would like to extract the Ram and Rom usage of each module by the help of binutils tools. I have a couple of objects (relocatable elf files) and a final executable (elf) to determine those data from. I am writing a reusable (among different…
lukas
  • 1
  • 3
0
votes
1 answer

how does "make" determine which linker to use?

I wanted to upgrade to binutils 2.26 , so i followed the steps here : How to convert default binutils into binutils-2.26? to solve the same "unrecognized relocation" error. Now my default linker is 2.26 $ ld --version GNU ld (GNU Binutils for…
AE1
  • 25
  • 5
0
votes
1 answer

How do I use the --with-cpu and --with-arch when cross compiling stuff like gcc binutils and glibc

I need to target armv7-a I dont know how to make it compile for armv7. It is instead using armv5te when the binaries are installed using make install I want to do ./configure --host=arm-eabi --target=arm-eabi --with-arch --with-cpu
Bret Joseph
  • 401
  • 3
  • 13
0
votes
0 answers

compiling error with make command std::__cxx11

At first, my Makefile is written as: .SUFFIXES: .c .cpp CC = g++ -fopenmp # CFLAGS = -c -Wall -D_I386 -D_UNIX -O2 -fPIC -Wno-deprecated -Wno-unused-result -std=c++0x -Wno-sign-compare CFLAGS = -c -O2 -Wall…
Gi Yeon Shin
  • 357
  • 2
  • 7
  • 19
0
votes
1 answer

What Linux entity is responsible for generating Illegal Instruction Traps?

I am working on a custom version of Rocket Chip that features some extra instructions that I would like to be properly handled by Linux. Although bare-metal programs using these instructions run fine, Linux makes the same benchmarks crash with…
0
votes
1 answer

how to fix GNU assembler (gas) documentation failing to build using mingw64 / msys2?

I'm getting errors like this when building binutils-gdb (the gas doc is failing to build). Has anyone seen this before or know how to fix it? /d/git/binutils-gdb/binutils-gdb-git/gas/doc/as.texi:635: table requires an argument: the formatter for…
Bill Morgan
  • 538
  • 2
  • 14
0
votes
0 answers

gcc linker script - bin file generated is ... almost 400MB, the device has 512KB FLASH

I have done something silly probably but can't find the error: /* Entry Point */ ENTRY(Reset_Handler) /* Highest address of the user mode stack */ _estack = 0x10004000; /* end of CCMRAM */ /* Generate a link error if heap and stack don't fit…
0___________
  • 60,014
  • 4
  • 34
  • 74
0
votes
2 answers

Error in makefile while build process of binutils

I am following this tutorial to develop a hello world operating system. The config part shown below gets done successfully # Delete the build directory if it already exists. rm -rfv binutils-build mkdir binutils-build cd…
logdev
  • 292
  • 6
  • 22
0
votes
1 answer

FLINT/C installation on Arch

I'm trying to install FLINT/C lib on Arch for learning Modern Cryptography in C. All my dependencies are fulfilled per se and the only thing left to do is run make && make install and ld is generating errors : make[1]: Entering directory…
0
votes
1 answer

Specify which version of strip to use during rpm build process

I have installed an updated gcc compiler suite and binutils on my RHEL6 system. These installations do not interfere with the system versions. However, when I build a static library with rpmbuild (using my upgraded compiler), I get errors when…
Fadecomic
  • 1,220
  • 1
  • 10
  • 23
0
votes
1 answer

Linker (ld) ELF Questions

I have an issue with an ELF file generated by the GNU linker ld. The result is that the data section (.data) gets corrupted when the executable is loaded into memory. The corruption to the .data section occurs when the loader performs the relocation…
HoPpY
  • 1
0
votes
1 answer

Creating a relocatable shared library with binutils

I have a custom toolchain that generates relocatable shared libraries. This works with an equally custom ELF loader which loads these into memory, fixing them up. I am now trying to persuade gcc and binutils to produce ELF files that are compatible…
David Given
  • 13,277
  • 9
  • 76
  • 123
0
votes
0 answers

how to compile only one utility from binutils?

New to makefiles and linux. How would I compile only readelf.c with all it's dependencies from binutils without compiling all of the other utilities? When trying make binutils/readelf i get the error: sysdep.h:23:25: fatal error: alloca-conf.h: No…
user4062303