mirror of https://github.com/yasm/yasm.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
157 B
14 lines
157 B
15 years ago
|
.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
|