More Related Content Similar to A hands-on introduction to the ELF Object file format (20) A hands-on introduction to the ELF Object file format1. Hareesh Nagarajan Pramod Kumar Both from 7 th Semester CSE at RV College of Engineering A hands-on introduction to the ELF Object file format 7. The Quick look at the String table This is how most string tables in the ELF look like. 8. The Symbol Table (I'm bored, I thought this was talk made use of a hands-on approach :( ) 13. bool AddRelocationEntry(Elf32_Addr roffset, unsigned char rsym, unsigned char rtype, int SectionIndex); obj.AddRelocationEntry(11, obj.ReturnSymbolIndex("myvariable"), R_386_RELATIVE, obj.GetSectionIndexOfType(SHT_REL, ".rel.text")); obj.PrepareFile(); obj.WriteFile("hello.o"); //Yippie! The OBJECT FILE is created Finally… Prototype 14. Memory map of hello.o $ g++ sample.cpp libmiasmaelf.o $./a.out ---> hello.o written!