summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorChristian Pirker <cpirker@a-bix.com>2014-03-26 14:57:32 +0000
committerChristian Pirker <cpirker@a-bix.com>2014-03-26 14:57:32 +0000
commit99974c7242208e0bcdd6474cecabd4682fb03e36 (patch)
tree97e32c151ff6d6f4cf55bfd3a16a2e372a42421e /llvm/lib/MC
parenta2cd009c51680abc576fbb2ccf45f673409c1bf6 (diff)
downloadbcm5719-llvm-99974c7242208e0bcdd6474cecabd4682fb03e36.tar.gz
bcm5719-llvm-99974c7242208e0bcdd6474cecabd4682fb03e36.zip
AArch64_BE Elf support for MC-JIT runtime dynamic linker
llvm-svn: 204816
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index 879aa8035b2..c27b88b9689 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -283,7 +283,8 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
TTypeEncoding = (CMModel == CodeModel::Small)
? dwarf::DW_EH_PE_udata4 : dwarf::DW_EH_PE_absptr;
}
- } else if (T.getArch() == Triple::aarch64) {
+ } else if (T.getArch() == Triple::aarch64 ||
+ T.getArch() == Triple::aarch64_be ) {
// The small model guarantees static code/data size < 4GB, but not where it
// will be in memory. Most of these could end up >2GB away so even a signed
// pc-relative 32-bit address is insufficient, theoretically.
OpenPOWER on IntegriCloud