Files
clang-p2996/lld/test/pecoff/Inputs/hello.asm
Rui Ueyama ef2c5413a9 [lld][PECOFF] Read relocation entries.
Summary:
COFFReference class is defined to represent relocation information for
COFFDefinedAtom, as ELFReference for ELFDefinedAtom. ReaderCOFF can now
read relocation entries and create COFFReferences accordingly.

I need to make WriterPECOFF to handle the relocation references created by
the reader, but this patch is already big, so I think it's probably better
to get it reviewed now.

Reviewers: Bigcheese

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D976

llvm-svn: 183964
2013-06-14 02:30:34 +00:00

25 lines
411 B
NASM

;;; ml hello.asm /link /subsystem:windows /defaultlib:kernel32.lib \
;;; /defaultlib:user32.lib /out:hello.exe /entry:main
.386
.model flat, c
extern MessageBoxA@16 : PROC
extern ExitProcess@4 : PROC
.data
caption db "Hello", 0
message db "Hello World", 0
.code
main:
mov eax, 0
push eax
push offset caption
push offset message
push eax
call MessageBoxA@16
push eax
call ExitProcess@4
end main