summaryrefslogtreecommitdiff
path: root/pwnlib/shellcraft/templates/i386/linux/i386_to_amd64.asm
blob: 52c5a7d826e0bc14ed24978b8a415b387348bb3d (plain)
1
2
3
4
5
6
7
<%docstring>Returns code to switch from i386 to amd64 mode. Trashes eax.</%docstring>
.code32
    push 0x33 /*  This is the segment we want to go to */
    /* "db 0xff; sub al,0x24" is "jmp far [esp]" by chance */
    call $+4
    sub al, 0x24
.code64