ELF File Format

Discussions center on the ELF executable format, including parsing challenges, loaders, comparisons to formats like a.out and Mach-O, performance issues, and workarounds or criticisms.

πŸ“‰ Falling 0.4x Open Source
2,182
Comments
20
Years Active
5
Top Authors
#5394
Topic ID

Activity Over Time

2007
2
2008
3
2009
17
2010
13
2011
19
2012
30
2013
44
2014
87
2015
76
2016
130
2017
115
2018
112
2019
163
2020
159
2021
215
2022
232
2023
230
2024
344
2025
176
2026
17

Keywords

RAM e.g MZ PS2 ld.so AIX PSX TUI E19253 LSB elf executables linux executable binaries binary gcc mach files format

Sample Comments

dvirsky β€’ Jul 9, 2015 β€’ View on HN

maybe it can be done with some unsafe magic parsing ELF files or something?

dark-star β€’ Jul 23, 2022 β€’ View on HN

You probably don't realize that not every system is using ELF binaries....

ptspts β€’ Nov 23, 2025 β€’ View on HN

Why is ELF so much slower and/or more memory hungry than a.out on Linux?

sylware β€’ Jul 10, 2023 β€’ View on HN

The problem here is actually ELF... not the language.

bogomipz β€’ Dec 21, 2019 β€’ View on HN

Could you elaborate on why you think the ELF format is insane?

johng β€’ Jan 28, 2025 β€’ View on HN

How long has ELF been around? Won't static ELF binaries still run?

temac β€’ Jan 24, 2024 β€’ View on HN

Why does it need to parse elf ?

tbodt β€’ May 18, 2020 β€’ View on HN

This seems fairly trivial to fix by writing an ELF loader.

orbifold β€’ Jul 23, 2022 β€’ View on HN

Can’t you just add binary data into a custom section of your ELF executable?

ANTSANTS β€’ Oct 26, 2014 β€’ View on HN

Haven't checked but I'm pretty sure the binutils just look for "magic numbers" (ie are the first four bytes "0x7F 'E' 'L' 'F'") and don't look at any filesystem information.