mpir/yasm/modules/objfmts/elf/tests/gas32/elf_gas32_got.asm
2009-07-25 00:50:29 +00:00

14 lines
157 B
NASM

.text
.extern a
.globl tst
tst:
call L1
L1:
pop %eax
add $_GLOBAL_OFFSET_TABLE_+(.-L1), %eax
mov (a@GOT)(%eax), %eax
movl $5, (%eax)
ret