repo.or.cz
/
nasm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
test: nasm-t -- Add br3392252
[nasm.git]
/
test
/
reldef.asm
blob
1741e13d333bf4f8630ca10be34b728f98f64899
1
bits
64
2
default rel
3
4
%
if
1
5
extern bar
6
%
else
7
section
.bss
8
bar:
resd
0
9
%
endif
10
11
global
start
12
global
foo
13
14
section
.rodata
15
rod1:
dd
0x01234567
16
rod2:
dd
0x89abcdef
17
18
section
.text
19
start:
20
call
.next
21
.
next:
pop
rsi
22
sub
rsi
,
.next
-
$$
23
24
lea
rax
, [
rod1
]
25
lea
rcx
, [
rod2
]
26
lea
rdx
, [
bar
]
27
lea
rbx
, [
foo
]
28
29
lea
rax
, [
rdi
+
rod1
-
$$
]
30
lea
rcx
, [
rdi
+
rod2
-
$$
]
31
lea
rdx
, [
rdi
+
bar
-
$$
]
32
lea
rbx
, [
rdi
+
foo
-
$$
]
33
34
mov
rax
, [
rdi
+
rod1
-
$$
]
35
mov
rcx
, [
rdi
+
rod2
-
$$
]
36
mov
rdx
, [
rdi
+
bar
-
$$
]
37
mov
rbx
, [
rdi
+
foo
-
$$
]
38
39
mov
rax
,
dword
rod1
-
$$
40
mov
rcx
,
dword
rod2
-
$$
41
mov
rdx
,
dword
bar
-
$$
42
mov
rbx
,
dword
foo
-
$$
43
44
section
.data
45
dq
rod1
46
dq
rod2
47
dq
bar
48
dq
foo
49
foo:
50
dd
rod1
-
$
51
dd
rod1
-
$$
52
dd
rod2
-
$
53
dd
rod2
-
$$
54
dd
bar
-
$
55
dd
bar
-
$$
56
dd
foo
-
$
57
dd
foo
-
$$