mpir/yasm/modules/objfmts/elf/tests/gas32/elf_gas32_got.asm

14 lines
157 B
NASM
Raw Normal View History

.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