Working with ELF files

view story

http://stackoverflow.com – I need to work with simple ELF files in my C program. I can't use any external libraries, but I can use elf.h. Let's take hello.o file for source: int Hello() { return 3; } How could I access to Hello in ohter C program having only hello.o file? I should probably load it to memory using mmap or sth like this. At the end I need to work with much complicated ELF files, but I don't know now, how to start. UPDATE: I need to do this the way I described it, because it is for learning purposes. Whole problem is more complex that what I described. For this question assume I need to write method (HowTos)