ELF file headers

前端 未结 9 1207
無奈伤痛
無奈伤痛 2021-02-05 22:15

A quick question about elf file headers, I can\'t seem to find anything useful on how to add/change fields in the elf header. I\'d like to be able to change the magic numbers an

9条回答
  •  南旧
    南旧 (楼主)
    2021-02-05 22:45

    I haven't done this in awhile, but can't you just append arbitrary data to an executable. If you always append fixed-size data it would be trivial to recover anything you append. Variable size wouldn't be much harder. Probably easier than messing w/ elf headers and potentially ruining you executables.

提交回复
热议问题