summaryrefslogtreecommitdiff
path: root/test/org.asm
blob: 792c39a5da04c6f707bb53c715c0202731ae6fd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;Testname=elf64; Arguments=-Ox -felf64 -oorg.o; Files=stdout stderr org.o
;Testname=win64; Arguments=-Ox -fwin64 -oorg.o; Files=stdout stderr org.o

;
; Simple test of a 64-bit org directive
; 
		bits 64
		org 0xffffffffffff0000

hello:		jmp there
		nop
		nop
there:
		add rax,[rsp+rbx]
		inc eax

		section .data
there_ptr	dq there