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
3
votes
1 answer

Building a cross compile of binutils on OS X Yosemite

I'm trying to build binutils for generating MIPS code on Mac OS X. I found this site (http://www.theairportwiki.com/index.php/Building_a_cross_compile_of_GCC_for_MIPS_on_OS_X) from How to build GCC 4.8.x on Mac OS X host for MIPS target, and…
prosseek
  • 182,215
  • 215
  • 566
  • 871
3
votes
2 answers

binutils - kernel - "_binary" meaning?

I am reading xv6 lectures. I have a file named initcode.S that is to be linked in the kernel. Now two symbols are created that way : extern char _binary_initcode_start[], _binary_initcode_size[]; inside a function. The lecture says : as part…
Kroma
  • 1,109
  • 9
  • 18
3
votes
2 answers

C compiler cannot create executables when trying to build Binutils

I am trying to build Linux From Scratch, and now I am at chapter 5.4, which tells me how to build Binutils. I have binutils 2.20's source code, but when I try to build it: time { ./binutils-2.20/configure --target=$LFS_TGT --prefix=/tools…
user142019
3
votes
1 answer

Why do I need to explicitly link pthread and rt with new gcc and binutils?

Situation I have a large multi-library c++ project that has been compiled on Debian Squeeze with its native gcc 4.4 compiler so far. Now I wanted to benefit from a newer gcc version and its optimizations for a specific architecture, thus being able…
oxygene
  • 621
  • 4
  • 14
3
votes
1 answer

How do you get the initialized value of a global variable out of an object file?

If you have an object file, how do you get the initialized value of a global variable in that object file's data segment? For example, say I've done the following: # I'm interested in the variable foo inside bar.o in libbar.a: $ ar -x libbar.a…
Adam Rosenfield
  • 390,455
  • 97
  • 512
  • 589
3
votes
1 answer

placing static library answer in the beginning of flash section

I'm using atmelstudio to compile a firmware image and want to place the functions from static libraries (including the gnu's libc.a & libgcc.a) in the beginning of the .text section followed .text belong to my project source code. Right now what…
Va1iant
  • 203
  • 3
  • 12
3
votes
1 answer

ELF shared library: relocation offset out of bounds

There is a software package elfutils which includes a program called eu-elflint for checking ELF binaries (just as lint for C - hence the name). Just for curiosity I have checked our own shared libraries with this tool and it found a lot of issues,…
anon
3
votes
2 answers

solaris elfedit: Is there something similar for linux ? (a shared library editor)?

Linux: It there a way to edit a compiled shared library ? specifically I am searching on how to add the DT_SYMBOLIC flag on an already compiled binary shared library? Here is why I am asking this: our application is composed of our own libraries…
anon
3
votes
1 answer

Change Symbol Visibility in Object File or Library ('t' -> 'T')

I need to change the symbol visibility in an object file or library. For example, a particular shared object has a symbol name present, but its local so I can't bind to it (the lower t indicates local in the TEXT section): $ nm…
jww
  • 97,681
  • 90
  • 411
  • 885
3
votes
2 answers

External GNU BinUtils "Sort" by column won't work in VIM

I have a simple table of data in VIM consisting of two sets of variable-length strings. For example: test bob check mike review tom test2 tom presentation mike I have been able to make it "prettier" by piping it through column, by selecting all…
Cloud
  • 18,753
  • 15
  • 79
  • 153
3
votes
2 answers

Script/Tool predicate for ARM ELF compiled for Thumb OR Arm

I have rootfs and klibc file systems. I am creating make rules and some developers have an older compiler without inter-networking.note1 I am trying to verify that all the files get built with arm only when a certain version of the compiler is…
artless noise
  • 21,212
  • 6
  • 68
  • 105
3
votes
1 answer

How to prevent implicit linker script changing the LMA of a section

I'm using a modular build system for software than runs on an ARM embedded target as well as on a normal X86 (linux) machine. I'm compiling with a GNU toolchain, thus linking using ld. One of the modules makes use of a linkerscript trick to assemble…
Bart
  • 1,633
  • 14
  • 21
3
votes
2 answers

Is there a way to unhide hidden-visibility symbols with GNU binutils?

I'm working on a script to make uClibc usable on an existing glibc-targetted gcc/binutils toolchain, and the one problem I'm left with is that pthread_cancel needs to dlopen libgcc_s.so.1. The version supplied with the host gcc is linked to depend…
R.. GitHub STOP HELPING ICE
  • 208,859
  • 35
  • 376
  • 711
2
votes
1 answer

Ruby grep binary files?

I have been using this so far system 'strings binary-file.dmp | grep search_string' Is there something more "Ruby like"?
Zombo
  • 1
  • 62
  • 391
  • 407
2
votes
2 answers

Porting newlib into cross-compiler

I am using this tutorial to create a cross-compiler. I followed the gcc cross-compiler tutorial and went to the porting newlib. Everything worked fine till I tried compiling it by issuing make all install when I got the following error: WARNING:…
vbnmjkl
  • 21
  • 2