TEXT   27
Dynamic segment
Guest on 17th March 2023 01:24:30 PM


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

Raw Paste

Login or Register to edit or fork this paste. It's free.