summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp
diff options
context:
space:
mode:
authorDenis Protivensky <dprotivensky@accesssoftek.com>2015-03-26 07:47:16 +0000
committerDenis Protivensky <dprotivensky@accesssoftek.com>2015-03-26 07:47:16 +0000
commit9e473d0929c86a425bcfd7065912182fb60bb608 (patch)
treee2f2bb81c92df386f8c1a9b9ea340033e1151b4e /lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp
parentc7efd564bb07977db15949ee72a7a3369e870c2a (diff)
downloadbcm5719-llvm-9e473d0929c86a425bcfd7065912182fb60bb608.tar.gz
bcm5719-llvm-9e473d0929c86a425bcfd7065912182fb60bb608.zip
[ARM] Handle mapping symbols
Mapping symbols should have their own code models, and in some places must be treated in a specific way. Make $t denote Thumb code, and $a and $d denote ARM code. Set size, binding and type of mapping symbols to what the specification says. Differential Revision: http://reviews.llvm.org/D8601 llvm-svn: 233259
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp')
-rw-r--r--lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp
index d24fdf0fa41..3032a98f798 100644
--- a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp
+++ b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp
@@ -432,7 +432,7 @@ std::error_code ARMTargetRelocationHandler::applyRelocation(
bool addressesThumb = false;
if (const auto *definedAtom = dyn_cast<DefinedAtom>(ref.target())) {
- addressesThumb = (DefinedAtom::codeARMThumb == definedAtom->codeModel());
+ addressesThumb = isThumbCode(definedAtom);
}
switch (ref.kindValue()) {
OpenPOWER on IntegriCloud