summaryrefslogtreecommitdiffstats
path: root/lld/include/lld/Core/DefinedAtom.h
diff options
context:
space:
mode:
authorDenis Protivensky <dprotivensky@accesssoftek.com>2015-01-27 07:39:04 +0000
committerDenis Protivensky <dprotivensky@accesssoftek.com>2015-01-27 07:39:04 +0000
commit2b5539651b776dc15e58dc269f685cbd8b4a06b8 (patch)
treeda278b189fdae1997473f89dbb32a71cc41b4de2 /lld/include/lld/Core/DefinedAtom.h
parent3d4276f053061933d45140b7bcb727d6b6efc7b4 (diff)
downloadbcm5719-llvm-2b5539651b776dc15e58dc269f685cbd8b4a06b8.tar.gz
bcm5719-llvm-2b5539651b776dc15e58dc269f685cbd8b4a06b8.zip
[lld] Correct forming of ARM/Thumb atoms
Symbols addressing Thumb code have zero bit set in st_value to distinguish them from ARM instructions. This caused wrong atoms' forming because of offset of one byte brought in by that corrected st_value. Fixed reading of st_value & st_value-related things in ARMELFFile while forming atoms. Symbol table generation is also fixed for Thumb atoms. Differential Revision: http://reviews.llvm.org/D7161 llvm-svn: 227174
Diffstat (limited to 'lld/include/lld/Core/DefinedAtom.h')
-rw-r--r--lld/include/lld/Core/DefinedAtom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/include/lld/Core/DefinedAtom.h b/lld/include/lld/Core/DefinedAtom.h
index 5414653c747..47e3cba1602 100644
--- a/lld/include/lld/Core/DefinedAtom.h
+++ b/lld/include/lld/Core/DefinedAtom.h
@@ -201,6 +201,7 @@ public:
codeMipsMicro, // microMIPS instruction encoding
codeMipsMicroPIC, // microMIPS instruction encoding + PIC
codeMips16, // MIPS-16 instruction encoding
+ codeARMThumb, // ARM Thumb instruction set
};
struct Alignment {
OpenPOWER on IntegriCloud