Submit and pass all tests to enable saving to GitHub.
Implementation
Why This Matters
Every Linux program loader, from the kernel's binfmt_elf to musl's dynamic linker, starts by parsing exactly the fields you are decoding here; readelf -h and objdump -f are thin wrappers around this same struct. Malware analysts hand-parse corrupted or intentionally malformed ELF headers when automated tools like readelf choke on them.
Hints
0 / 3 revealed
Sample validation
Sample case for Run. Submit grades this sample plus all hidden tests.
main.c
Workspace 1.0
Implement an ELF header parser in C.
Requirements:
Define Elf64_Ehdr structure matching the ELF specification
Open and read a binary file
Verify the magic bytes (0x7F 'E' 'L' 'F')
Print e_ident bytes (class, data encoding, version, OS/ABI)