diff options
author | Pete Cooper <peter_cooper@apple.com> | 2016-02-09 20:11:17 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2016-02-09 20:11:17 +0000 |
commit | e8d9df4ea52a5652a13f080614507d70e9f9ad79 (patch) | |
tree | 3fb45502872d4df3ddef231d5ed79dae45ba2c6b /lld/lib/Core/DefinedAtom.cpp | |
parent | a951e8ece71b6393b602fd3d5f3538a264508673 (diff) | |
download | bcm5719-llvm-e8d9df4ea52a5652a13f080614507d70e9f9ad79.tar.gz bcm5719-llvm-e8d9df4ea52a5652a13f080614507d70e9f9ad79.zip |
Use __nl_symbol_ptr instead of __got in the stubs pass on x86 archs.
The non lazy atoms generated in the stubs pass use an image cache to
hold all of the pointers. On arm archs, this is the __got section,
but on x86 archs it should be __nl_symbol_ptr.
rdar://problem/24572729
llvm-svn: 260271
Diffstat (limited to 'lld/lib/Core/DefinedAtom.cpp')
-rw-r--r-- | lld/lib/Core/DefinedAtom.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/lib/Core/DefinedAtom.cpp b/lld/lib/Core/DefinedAtom.cpp index 35596e6929f..09c52f85ae5 100644 --- a/lld/lib/Core/DefinedAtom.cpp +++ b/lld/lib/Core/DefinedAtom.cpp @@ -54,6 +54,7 @@ DefinedAtom::ContentPermissions DefinedAtom::permissions(ContentType type) { case typeObjC1Class: case typeLazyPointer: case typeLazyDylibPointer: + case typeNonLazyPointer: case typeThunkTLV: case typeRWNote: return permRW_; |