binutils Questions

4

Solved

Is it possible to clear the command window of gdb? I mean, is there a command in gdb that do the same (for the command windows) as the clear command in a bash terminal?
Huron asked 17/10, 2012 at 15:41

4

Solved

I have updated my arm-none-eabi GCC and the associated tools and rebuilt an embedded project I develop. $ arm-none-eabi-ld --version GNU ld (GNU Binutils) 2.39 Suddenly, I'm getting the warning /u...
Pfister asked 20/8, 2022 at 20:28

2

I am following a website ( http://wiki.osdev.org/GCC_Cross-Compiler ) to learn how to cross compile some code for different architectures. So, the first step is to download and compile Binutils for...
Eudoca asked 23/3, 2017 at 20:39

2

I have a requirement on changing certain symbols from shared library (.so) files like below example: i need to rename symbol abc in .so file to symbol xyz. I have a tool to replace it in header fil...
Ichthyic asked 20/8, 2021 at 6:51

2

Solved

In modern linux almost all objects are stripped and splitted in two parts (two files). First is executable itself and second is debug symbols, stripped out from original ELF. Such files are created...
Ebeneser asked 24/3, 2010 at 16:9

5

Solved

I've tried the following, but the resulting file is still an ELF and not purely the section content. $ objcopy --only-section=<name> <infile> <outfile> I just want the contents...
Roundtheclock asked 13/10, 2010 at 15:0

1

I have a ELF file and I want to get a hex or bin file of my code from it. In the terminal, if a do a file main, which is my file, it shows: main: ELF 32-bit LSB executable, UCB RISC-V, version 1 (S...
Wilda asked 13/9, 2019 at 13:38

1

When using GCC to compile most things, I get this error: /..//bin/ld: cannot find crtbeginS.o: No such file or directory crtbeginS.o exists at /usr/local/lib/gcc/x86_64-unknown-linux-gnu/6.0.0/c...
Ectoblast asked 21/5, 2015 at 22:58

1

Solved

I'd like to know how to get this berkeley format output: $ size --format=berkeley /bin/ls text data bss dec hex filename 124042 4728 4832 133602 209e2 /bin/ls From this sysv format output: $ si...
Scallion asked 26/9, 2020 at 1:34

2

Solved

Consider the hello world C program: hello.c: #include "stdio.h" int main() { printf("Hello, World!\n"); } If I call: $ gcc -c hello.c -o hello.o It will produce an ELF Relocatable File hel...
Amr asked 19/1, 2013 at 19:54

3

I try to find the exact line of a call in the backtrace in C++ program. Right now I am using these lines (from the man page of backtrace) to get the trace: void *bt_buffer[1000]; char **bt_strin...
Educate asked 20/7, 2012 at 12:35

1

From the bottom of any auto-generated STM32CubeMx-generated linker script: /* Remove information from the standard libraries */ /DISCARD/ : { libc.a ( * ) libm.a ( * ) libgcc.a ( * ) } From the...
Tiber asked 10/4, 2019 at 22:8

2

Solved

I'm learning about the layout of executable binaries. My end goal is to analyze a specific executable for things that could be refactored (in its source) to reduce the compiled output size. I've b...
Nab asked 20/3, 2019 at 21:21

1

Solved

I have two shared libraries: liba and libb, where libb depends on liba and an executable which uses libb. I faced a problem building the project using CMake for aarch64 architecture, while everythi...
Contrail asked 6/11, 2019 at 11:55

2

Is there a sort of official documentation about version compatibility between binutils, glibc and GCC? I found this matrix for binutils vs GCC version compatibility. It would be good to have someth...
Debatable asked 8/3, 2016 at 17:6

2

Solved

I have received an error message when compiled "make" $ make g++ -fopenmp -o lang.test main.o -I../../../include/Lheader -I../../../include -L../../../lib/ -llmi -lblas -lboost_regex -lpthread -ll...
Arbela asked 10/10, 2018 at 10:6

1

Solved

The GNU ld (linker script) manual Section 3.5.5 Source Code Reference has some really important information on how to access linker script "variables" (which are actually just integer add...
Michikomichon asked 10/4, 2019 at 22:32

5

Solved

I'm experimenting with the concept of pure-static-linked PIE executables on Linux, but running into the problem that the GNU binutils linker insists on adding a PT_INTERP header to the output binar...
Margaritamargarite asked 5/5, 2012 at 20:48

4

Solved

As an exercise to learn more precisely how c programs work and what minimum level of content must exist for a program to be able to use libc, I've taken it upon myself to attempt to program primari...
Pycno asked 26/8, 2010 at 17:48

0

The musl C library has only an approximative implementation of symbol versioning. This can result in symbols being bound together that have different symbol versions, something which would not happ...
Bartell asked 22/1, 2019 at 11:56

3

Solved

I am trying to set up a completely recent and up to date gcc environment... basically gcc 4.6.3 and binutils 2.22. Not the fairly old gcc 4.2.1 (llvm) that comes with Xcode 4.2.1. My problem is not...
Fotheringhay asked 5/3, 2012 at 21:9

2

Solved

So I can add a link to a debug symbol file like this objcopy --add-gnu-debuglink=$name.dbg $name, but how can I later retrieve that value again? I checked with readelf -a and grepped for \.dbg wit...
Okwu asked 13/9, 2017 at 16:5

3

Solved

I want to compile this source code in Windows (It just an example): start: NOP NOP When I compile it with NASM or FASM, output file length is 2 bytes. But when I compile it with GNU assemb...
Rondelet asked 12/12, 2011 at 22:49

2

Sometimes when I do nm on a .so file (for example, libstdc++.so.6), it says no symbols, and I need to use nm --dynamic. But for some other .so files, I can see the symbols without --dynamic. The ...
Simulate asked 11/3, 2013 at 18:10

0

In a comment to this question, Unexpected behaviour in simple pointer arithmetics in kernel space C code, Michael Petch wrote, "The 64-bit ELF format supports 32-bit code sections." I have a worki...
Iphigenia asked 25/3, 2018 at 6:12

© 2022 - 2024 — McMap. All rights reserved.