Top "Elf" questions

ELF stands for Executable and Linkable Format, a file format for files containing machine code.

How to remove a specific ELF section, without stripping other symbols?

I have an ELF 32-bit x86 file which contains an .eh_frame section, despite my attempts1 to remove it. I'd …

gcc elf objcopy
Understanding the relocation table output from readelf

For example, running the command: readelf -r /bin/ls | head -n 20 I get the following output: Relocation section '.rela.…

elf readelf
Base address at which the linux kernel is loaded

I have a couple of doubts about how the kernel is loaded into memory. Upon inspecting /proc/kallsyms I'm able …

linux linux-kernel kernel-module elf virtual-memory
How do I check if an object file is in COFF or ELF format from within C?

I would like to be able to check the format of an object file from within my C code so …

c linux elf coff
How to make an executable ELF file in Linux using a hex editor?

Just curious. This obviously isn't a very good solution for actual programming, but say I wanted to make an executable …

linux assembly elf
When are GAS ELF the directives .type, .thumb, .size and .section needed?

I'm working on an assembly program for an ARM Cortex-M3 based microcontroller (Thumb 2 instruction set), using GNU as. In some …

assembly arm gnu elf gnu-assembler
Trace32 command to read symbol contents from ELF file

Problem scenario: In simple words, do we have a Trace32 command to read symbols (and its contents) from ELF file …

elf debug-symbols readelf trace32 lauterbach
How to interpret the dynamic symbol table in an ELF executable?

I was looking at interpreting the dynamic symbol table (.dynsym) of an ELF executable file. I could successfully interpret the …

dynamic elf symbol-table
What functions does gcc add to the linux ELF?

When linking a hello-world-like program in c (or asm) with gcc it will add some stuff into the result executable …

c linux gcc assembly elf