mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-15 09:09:58 +08:00
72bf3fe98c
Only generate a signed relocation if the displacement size is less than the address size. This matters when involving address size overrides. It is technically impossible to do this one perfectly, because it is never really knowable if the displacement offset is used as a base or an index. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
21 lines
257 B
NASM
21 lines
257 B
NASM
bits 64
|
|
extern foo
|
|
|
|
mov eax,[foo]
|
|
mov rax,[foo]
|
|
mov rax,[qword foo]
|
|
|
|
mov eax,[a32 foo]
|
|
mov rax,[a32 foo]
|
|
mov rax,[a32 qword foo]
|
|
|
|
mov eax,foo
|
|
mov rax,dword foo
|
|
mov rax,qword foo
|
|
mov eax,foo
|
|
mov rax,dword foo
|
|
mov rax,qword foo
|
|
|
|
dd foo
|
|
dq foo
|