ELF Header Magic - Why was 0x7F put in it?

Viewed 816

Every resource I have read concerning the ELF header magic points out that it contains ASCII encoded "ELF", and then briefly mentions that 0x7F is prepended to it without explanation.

Is there a reason for the 0x7F?

Was it meant to avoid conflict with an existing format? Existing standard compliance? Used to detect something concerning the disk or memory?

1 Answers

It's obvious, it's leet.

7F sounds like Elf in leet. The letter L can be represented as 7 in leet. Pronounce the letter L with an F and it sounds like Elf. There couldn't be other byte but 0x7F.

Related