summaryrefslogtreecommitdiffstats
path: root/lld/lib/Core/DefinedAtom.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-07-11 08:46:21 +0000
committerRui Ueyama <ruiu@google.com>2013-07-11 08:46:21 +0000
commitc8a53795ab3463d29950f25f6b91860ef43c502b (patch)
tree38e1817a8c699092f4d348792ccc0b249525bcec /lld/lib/Core/DefinedAtom.cpp
parent67ddcd6dd08f31c74b4c6662aeb9574651d0c7c7 (diff)
downloadbcm5719-llvm-c8a53795ab3463d29950f25f6b91860ef43c502b.tar.gz
bcm5719-llvm-c8a53795ab3463d29950f25f6b91860ef43c502b.zip
[PECOFF] Support linking against DLL.
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
Diffstat (limited to 'lld/lib/Core/DefinedAtom.cpp')
-rw-r--r--lld/lib/Core/DefinedAtom.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/lib/Core/DefinedAtom.cpp b/lld/lib/Core/DefinedAtom.cpp
index 0aa2aa84e92..9e00567afc7 100644
--- a/lld/lib/Core/DefinedAtom.cpp
+++ b/lld/lib/Core/DefinedAtom.cpp
@@ -51,6 +51,7 @@ DefinedAtom::ContentPermissions DefinedAtom::permissions(ContentType type) {
case typeLazyPointer:
case typeLazyDylibPointer:
case typeThunkTLV:
+ case typeDataDirectoryEntry:
return permRW_;
case typeGOT:
OpenPOWER on IntegriCloud