- align 256
- DynAddr: ; base address of segment
- DynOffset equ DynAddr-$$ ; offset of segment in file
- _DYNAMIC:
- dd 4, HashTable ; DT_HASH, address of hash table
- dd 5, StringTable ; DT_STRTAB, address of string table
- dd 10, StringTableSize ; DT_STRSZ, string table size in bytes
- dd 6, SymbolTable ; DT_SYMTAB, address of symbol table
- dd 11, 16 ; DT_SYMENT, symbol table entry size in bytes
- dd 3, GOT ; DT_PLTGOT, base address of Global Offset Table
- dd 23, RelocTable ; DT_JMPREL, base address of relocation table
- dd 2, RelocTableSize ; DT_PLTRELSZ, size of relocation table in bytes
- dd 20, 17 ; DT_PLTREL, DT_REL, indicate type of PLT relocation
- dd 1, idxlibdl ; DT_NEEDED, string table index ; library name
- ; dd 21, 0 ; DT_DEBUG, none, no debug information
- dd 0, 0 ; DT_NULL, ignored - end of list
- align 256
- DynSize equ $-DynAddr
Raw Paste