diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-18 20:47:21 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-18 20:47:21 +0000 |
commit | eada30479399014c22c7b7edb008177c312eefee (patch) | |
tree | 6ba12403e5e26eb0b754ee62a6b188c1d8dd440e /lib | |
parent | a8702eaf78e70e1eef8a63882ce97ae6d60edf5b (diff) | |
download | external_llvm-eada30479399014c22c7b7edb008177c312eefee.zip external_llvm-eada30479399014c22c7b7edb008177c312eefee.tar.gz external_llvm-eada30479399014c22c7b7edb008177c312eefee.tar.bz2 |
Implement R_386_GOT32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116744 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/ELFObjectWriter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index b5943ec..adaecc0 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp @@ -706,6 +706,9 @@ void ELFObjectWriterImpl::RecordRelocation(const MCAssembler &Asm, switch (Modifier) { default: llvm_unreachable("Unimplemented"); + case MCSymbolRefExpr::VK_GOT: + Type = ELF::R_386_GOT32; + break; case MCSymbolRefExpr::VK_GOTOFF: Type = ELF::R_386_GOTOFF; break; |