mpir/yasm/modules/objfmts/elf/tests/elfglobal.asm
2008-06-15 20:20:16 +00:00

11 lines
225 B
NASM

; Note: you should be able to link elfreloc.o with elfglobal.o to make a
; program that calls function with eax=constant, thus exiting err=0
GLOBAL constant
GLOBAL function
constant EQU 48
function:
sub eax, constant
ret