The implementation of AMD64 relocations was imcomplete and wrong. On AMD64, we of course have to use AMD64 relocations instead of i386 ones. This patch fixes the issue. LLD is now able to link hello64.obj (created from hello64.asm) against user32.lib and kernel32.lib to create a Win64 binary. llvm-svn: 216253
15 lines
144 B
NASM
15 lines
144 B
NASM
.code
|
|
ExitProcess PROC
|
|
RET
|
|
ExitProcess ENDP
|
|
|
|
MessageBoxA PROC
|
|
RET
|
|
MessageBoxA ENDP
|
|
|
|
_DllMainCRTStartup PROC
|
|
RET
|
|
_DllMainCRTStartup ENDP
|
|
|
|
END
|