Looking for information/sample code to disassemle ELF files

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
Viper187
Posts: 1
Joined: Fri Jun 13, 2008 2:45 am
Contact:

Looking for information/sample code to disassemle ELF files

Post by Viper187 »

I'm writing my own PS2DIS type editor in C (under Windows), and I can't find any decent documentation on the structure of the ELF itself. I've got details on the header info, but I don't know exactly how to parse it all (or order to parse it) to read the file into structs/arrays then write it all back to rebuild the file. Considering the file format itself is used on linux, you'd think there'd be some source code floating around to do this part.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Use libbfd, part of binutils.
Post Reply