aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/ELFObjectWriter.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-06-04 17:38:07 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-06-04 17:38:07 +0000
commite0b87032f5ac8134b7585bdc4a0f2c77158b962d (patch)
treea465c6ac9e71a8b679905f256720baec19327011 /lib/MC/ELFObjectWriter.cpp
parent1777299737b0775093db44dab4781c6aedd5659c (diff)
downloadexternal_llvm-e0b87032f5ac8134b7585bdc4a0f2c77158b962d.zip
external_llvm-e0b87032f5ac8134b7585bdc4a0f2c77158b962d.tar.gz
external_llvm-e0b87032f5ac8134b7585bdc4a0f2c77158b962d.tar.bz2
Add support for @GOTPTOFF in i386 mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/ELFObjectWriter.cpp')
-rw-r--r--lib/MC/ELFObjectWriter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp
index 6b81fc9..86344d1 100644
--- a/lib/MC/ELFObjectWriter.cpp
+++ b/lib/MC/ELFObjectWriter.cpp
@@ -1720,6 +1720,9 @@ unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
case MCSymbolRefExpr::VK_DTPOFF:
Type = ELF::R_386_TLS_LDO_32;
break;
+ case MCSymbolRefExpr::VK_GOTTPOFF:
+ Type = ELF::R_386_TLS_IE_32;
+ break;
}
break;
case FK_Data_2: Type = ELF::R_386_16; break;