ELFDUMP(1)
π ELFDUMP(1) β the elfdump girlies' guide to looking inside ELF files π
okay so bestie, this is the elfdump manual page β that's section 1 of the General Commands Manual, and it's genuinely one of my faves. it's short, it's iconic, and it does exactly one thing but does it so well. let me walk you through it π«Ά
β¨ NAME β¨
elfdump β display information about ELF files. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
elfdump -a | -E | -cdeGhinprs [-w file] file
read that again, carefully, because the structure is kind of the main character here. you either pass -a all by itself, OR you pass -E all by itself, OR you pass some combo of -cdeGhinprs (they stack! they're besties!), and you can also throw -w file in there whenever. then at the end you gotta name your file. no cap. π₯
β¨ DESCRIPTION β¨
so, what does elfdump actually do? the elfdump utility dumps various information about the specified ELF file. cute, mysterious, to the point. like a girl who shows up, spills all the tea about your binary, and leaves πΈ
the options are as follows:
-aβ dump all information. literally everything. the full stan account. the mega-dump. take it all in π₯-cβ dump the section headers π-dβ dump the dynamic symbols β¨-eβ dump the ELF header π¦-Eβ return success if file is an ELF file and failure if it is not. so this one is a lil different, bestie: it's a pure yes/no vibe check. and here's the important bit β this option is exclusive with other options. it does NOT play nicely with the others, do not pair it, do not invite it to the group chat π-Gβ dump the GOT π-hβ dump the hash values π-iβ dump the dynamic interpreter π-nβ dump note sections π-pβ dump the program header β-rβ dump relocations π§-sβ dump the symbol table π-wfileβ write output to a file instead of the standard output. yes, the option takes an argument, and yes, confusingly, that argument is also called file in the synopsis, and there's a second file too. i know. exe. still iconic π
ngl the -E exclusivity is the one thing you truly have to remember. it's not like the other flags, it doesn't share the aux cord. keep it solo.
β¨ EXIT STATUS β¨
the elfdump utility exits 0 on success, and >0 if an error occurs. classic. understated. we love a girl who knows how to signal failure π
β¨ EXAMPLES β¨
the following is an example of a typical usage of the elfdump command:
elfdump -a -w output /bin/ls
see what's happening? dump all the info about /bin/ls, but send it into a file called output instead of flooding your terminal. so thoughtful. so organized. that's her π
β¨
β¨ SEE ALSO β¨
objdump(1)πreadelf(1)π
also on the reading list, and this is a real source not just a vibe, so go check it out:
AT&T Unix Systems Labs, System V Application Binary Interface, http://www.sco.com/developers/gabi/.
β¨ HISTORY β¨
the elfdump utility first appeared in FreeBSD 5.0. a true OG. respect the elders π
β¨ AUTHORS β¨
- the
elfdumputility was written by Jake Burkholder<jake@FreeBSD.org>. π - this manual page was written by David O'Brien
<obrien@FreeBSD.org>. π
both of them? legends. thank you for your service π«Ά
β¨ BUGS β¨
does not fully implement the ELF gABI. that's the whole bug section. short, honest, a little devastating ππ so like β set your expectations accordingly, she's great but she's not the entire spec.
and that's the page, bestie!! this one came from Debian, dated November 5, 2018 β so if you're citing it, that's your source and your date. now go dump some ELF files, you absolute icon πππ¦
periodt. π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2003 David O'Brien
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms