• MorphOS Developer
    Piru
    Posts: 576 from 2003/2/24
    From: finland, the l...
    Quote:

    Thank you for your responses and suggestions. But I don't think I was clear enough about what I meant by 'produce a disassembly'... I am developing a ppc assembly debugger for which I have my own crude disassembler. I would like to make this disassembly output a bit less crude by including program labels that may still be present in the ELF. To do this, I will need to understand the ELF data structure rather than relying on someone else's program or library.

    At some point I will very likely also want to create my own ELF loader for this debugger so a language neutral explanation of ELF data structures would be very helpful as I don't like my chances of figuring this out via binary editor...

    I think I understood you correctly. Since you still need to write your own code, taking inspiration from the existing source code is only sensible.

    You could of course try to read the available documentation such as
    http://www.kernel.org/doc/man-pages/online/pages/man5/elf.5.html or http://www.sco.com/developers/devspecs/gabi41.pdf (page 44 onwards) but frankly nothing quite beats the existing, proven and working example source code as a reference.

    [ Edited by Piru 18.05.2011 - 12:09 ]
  • »18.05.11 - 09:58
    Profile