Yasm Assembler mainline development tree (ffmpeg 依赖)
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.
 
 
 
 
 
 

13 lines
157 B

.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