Top "Elf" questions

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

How to retrieve the GCC version used to compile a given ELF executable?

I'd like to retrieve the GCC version used to compile a given executable. I tried readelf but didn't get the …

gcc elf
arm gcc toolchain as arm-elf or arm-none-eabi, what is the difference?

When you build a gcc toolchain there is the possibility to build it as arm-elf or as arm-none-eabi, but what …

gcc arm elf cortex-m3 eabi
How to strip executables thoroughly

I'd like to strip as much as I can - on Linux: an ELF. I only want in there the …

linux gcc executable elf strip
How to extract only the raw contents of an ELF section?

I've tried the following, but the resulting file is still an ELF and not purely the section content. $ objcopy --only-section=&…

linux shell elf binutils
building Linux kernel on Mac OS X

I am doing a project to modify the Linux kernel. I have a desktop Linux machine and I have no …

linux macos kernel elf
What are the meanings of the columns of the symbol table displayed by readelf?

Could someone explain the columns shown of the symbol table using readelf?

symbols elf
What do R_X86_64_32S and R_X86_64_64 relocation mean?

Got the following error when I tried to compile a C application in 64-bit FreeBSD: relocation R_X86_64_32S can …

c compiler-construction linker elf relocation
How can I generate an ELF file with GCC?

I am writing C and C++ code on Linux OS and I am using GCC. After finishing my code, I …

gcc compilation executable elf file-format
What exactly does `-rdynamic` do and when exactly is it needed?

What exactly does -rdynamic (or --export-dynamic at the linker level) do and how does it relate to symbol visibility as …

c gcc shared-libraries elf dynamic-loading
What's the difference of section and segment in ELF file format

From wiki Executable and Linkable Format: The segments contain information that is necessary for runtime execution of the file, while …

linux debian gnu elf abi