This patch adds a new pass, IdataPass, to transform shared atom references to real references and to construct the .idata section data. With this patch lld can produce a working Hello World program by linking it against kernel32.dll and user32.dll. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1096 llvm-svn: 186071
19 lines
194 B
NASM
19 lines
194 B
NASM
.386
|
|
.model flat, c
|
|
|
|
_data$2 SEGMENT BYTE alias(".data$2")
|
|
db "orld", 0
|
|
_data$2 ends
|
|
|
|
_data$1 SEGMENT BYTE alias(".data$1")
|
|
db "o, w"
|
|
_data$1 ends
|
|
|
|
.data
|
|
db "Hell"
|
|
|
|
.code
|
|
main:
|
|
nop
|
|
end main
|