Live data from Hacker News

Anatomy of an ELF executable

kishuagarwal.github.io

21–27 of 27 posts

Re: Anatomy of an ELF executable

#22

Strongly recommend reading "How To Write Shared Libraries" by Ulrich Drepper https://software.intel.com/sites/default/files/m/a/1/e/dsoho... I recently dove into ELF files so I could convert ELF binaries to DOS EXE, for a little bit of retro programming with modern compilers. Not that I couldn't have used DJGPP.

> I recently dove into ELF files so I could convert ELF binaries to DOS EXE, for a little bit of retro programming with modern compilers. Not that I couldn't have used DJGPP.

That sounds pretty cool, did you make anything you could share?

Re: Anatomy of an ELF executable

#24

Strongly recommend reading "How To Write Shared Libraries" by Ulrich Drepper https://software.intel.com/sites/default/files/m/a/1/e/dsoho... I recently dove into ELF files so I could convert ELF binaries to DOS EXE, for a little bit of retro programming with modern compilers. Not that I couldn't have used DJGPP.

> I recently dove into ELF files so I could convert ELF binaries to DOS EXE, for a little bit of retro programming with modern compilers. Not that I couldn't have used DJGPP. That sounds pretty cool, did you make anything you could share?

Going to post it to GitHub when I have a moment. I literally wrote the code a couple weeks ago.

Edit: https://github.com/depp/elf2dos

Re: Anatomy of an ELF executable

#25
post #19

Interesting article. When I was studying the elf format myself in the past I've also found very useful this poster. https://github.com/corkami/pics/blob/master/binary/elf101/el... The author has made many more for similar binary formats.

COM files are great... no headers, you just sort of start. Data, code... whatever.
Post reply on HN