1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

need to search auxv for AT_PHDR

committer: jreiser <jreiser> 994946170 +0000
This commit is contained in:
John Reiser 2001-07-12 13:56:10 +00:00
parent 96141d82f4
commit e4660b8608

View File

@ -105,7 +105,14 @@ EXTERN upx_main
pop ebx ; &Elf32_Ehdr of this stub
push eax ; save entry address
mov edi, [a_val + sz_auxv * (AT_PHDR -1) + edi]
mov esi, edi ; auxv table
L60: ; search for AT_PHDR
lodsd ; a_type
cmp al, byte AT_PHDR
lodsd ; a_un.a_ptr
jne L60
xchg eax, edi
find_hatch:
push edi
EXTERN make_hatch