ELF标头魔术-为什么要放入0x7F? [英] ELF Header Magic - Why was 0x7F put in it?
问题描述
我所阅读的有关ELF标头魔术的所有资源都指出它包含ASCII编码的"ELF",然后简要地提到0x7F被附加在它前面,没有任何解释.
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.
有没有理由使用0x7F?
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?
推荐答案
很明显,它是 leet .
7F听起来像精灵中的精灵.字母L可以用7表示.用F发音字母L,听起来像Elf.不能有其他字节,只能是0x7F.
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.
这篇关于ELF标头魔术-为什么要放入0x7F?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!