- align 64 ; for dumps
- align 4 ; finally
- RelocTable:
- ; for dlopen
- dd GOT+12 ; first entry is GOT[3], GOT[0..2] reserved
- dd 0x0107 ; Symbol Index = 1<<8 + R_386_JMP_SLOT
- ; for dlsym
- dd GOT+16 ; second entry is GOT[4]
- dd 0x0207 ; Symbol Index = 2<<8 + R_386_JMP_SLOT
- ; for dlclose
- dd GOT+20 ; third entry is GOT[5]
- dd 0x0307 ; Symbol Index = 3<<8 + R_386_JMP_SLOT
- ; for dlerror
- dd GOT+24 ; fourth entry is GOT[6]
- dd 0x0407 ; Symbol Index =4<<8 + R_386_JMP_SLOT
- RelocTableSize equ $-RelocTable
Raw Paste