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
1
vote
1 answer

prebuilt binutils that run on android device

I can not find any built versions of the binutils that could be pushed to an Android device an then be executed from there. The Android NDK toolchain provides them but in the wrong format. Devices need them in ELF 32bit executable for ARM , but the…
1
vote
1 answer

android NDK: objcopy --rename-sym does not work (need to rename a function in a .so file)

I cannot get objcopy --rename-sym working. In a new Android project, I have created the directory jni and the file stub.c: #include #include "dlog.h" jint JNI_OnLoad(JavaVM* vm, void* reserved) { DLOG("~~~~~~~~~~~~~~~~~~~~~~~ JNI_OnLoad…
18446744073709551615
  • 16,368
  • 4
  • 94
  • 127
1
vote
2 answers

Access violation gas read syscall

I am new to assembly language and am facing a problem in my first steps. I have some experience with high level languages but I feel like a total beginner in this low level. I am using the GNU assembler (gas) version 2.23 x86_64 on a Xubuntu…
linluk
  • 1,650
  • 16
  • 33
1
vote
1 answer

building cross binutils fr30-unknown-none unsupported

I am trying to build a cross binutilsfor fr30. After running the configure command : ./configure --target=fr30 --enable-cgen-maint --prefix=//myBinutils/new_build_fr30_cgen/ I run make command and got the next error : ** BFD does not…
yehudahs
  • 2,488
  • 8
  • 34
  • 54
1
vote
0 answers

Building gcc for msp430-elf target

I'm trying to build gcc-4.9 for msp430. I've already built the most recent version of binutils and have tried building gcc-4.9 with the basic configuration: configure --target=msp430-elf --enable-languages=c,c++ --with-newlib=yes The problem though…
en4bz
  • 1,092
  • 14
  • 18
1
vote
2 answers

Rewrite shared library undef symbol version of compiled object

I am trying to compile and link a program (let's call it myprog) which is linked against a shared library (in this instance libcryto & libssl, but the actual library is not relevant). I am building it on Centos 5.5 but want the same binary to run on…
abligh
  • 24,573
  • 4
  • 47
  • 84
1
vote
1 answer

problems in building the oprenrisc toolchain

I want to build the openrisc toochain on my virtual machine ubuntu 12.04. I succeed to do this one time before my vm crashed for some reasons, but now I am unable to do it. I am following these instructions to achieve this…
mohessaid
  • 390
  • 2
  • 14
1
vote
1 answer

Installing gcc 4.8 on 13.10 “The following packages have unmet dependencies”

When I go to install gcc 4.8 using: sudo apt-get update sudo apt-get install gcc-4.8 g++-4.8 I get the error message: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the…
user2369478
  • 63
  • 11
1
vote
1 answer

replacing files in another directory

I have two directories structured as follows: dir1/a/file1 dir1/a/b/file2 dir1/a/c/d/file3 and dir2/a/file4 dir2/a/b/file5 dir2/a/c/d/file6 I want to copy all the files in the subdirectories under dir1 to dir2, but keep the files that are…
JRR
  • 6,014
  • 6
  • 39
  • 59
1
vote
1 answer

Gold linker: specify alignment of sections

I want to specify alignment for some sections. For ld 2.20.0 the following approach works: create a linker script containing only the sections that should be aligned, e.g.: SECTIONS { .data ALIGN(0x40): { *(.data) } .text ALIGN(0x40): {…
1
vote
1 answer

Proper usage of ARMv6 equates: .equ .reg .set

Using the GNU Assembler Manual, v2.19.51, I was not able to find a definitive difference between these types of equates: .equ .reg .set Does anyone know the difference and proper usage?
bluestar
  • 21
  • 3
1
vote
1 answer

ld: undefined symbol vs ld: undefined reference

What is the difference between these errors in GNU Binutils ld ? undefined reference undefined symbol I have a good understanding of undefined reference: This occurs for example when the loader cannot find the implementation of a function. I am…
Adam
  • 67
  • 1
  • 8
1
vote
2 answers

libopcodes: get the size of a instruction

I have to find out the size of a instruction which I have in memory (actually, I have a small code segment in memory and want to get the size of the first instruction). It took me some time to find libopcodes and libbfd. I red the headers and tried…
1
vote
1 answer

Optimizing weak symbols lookup

If you ever tried to use the nm utility on any C++ program you have probably noticed that many symbols are identified as 'V' or 'W'. Both are different kind of weak symbols. Now, having tons of weak symbols in an executable is bad, since at runtime…
alexp
  • 811
  • 4
  • 10
1
vote
1 answer

GCJ Linking Error: Says error: undefined reference to 'main' collect2: error: ld returned 1 exit status

The code is this: public class Thingy { public static void main(String[] args) { System.out.println(Math.random()); } } So, absolutely NOT an unusual case, just a basic example. When I try to use GCJ's javac implementation to make…
user2093092
  • 13
  • 1
  • 3