diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-07-21 06:51:32 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-07-21 06:51:32 +0000 |
commit | 68491c12179f963b346aa4cb8e1b924184d79970 (patch) | |
tree | b1c556d30ff436e16f321632a9ac977532824adf /lib/Target/X86/X86ELFWriterInfo.cpp | |
parent | 634d61b13500764a506100eb5115b1afe1e427eb (diff) | |
download | llvm-68491c12179f963b346aa4cb8e1b924184d79970.tar.gz llvm-68491c12179f963b346aa4cb8e1b924184d79970.tar.bz2 llvm-68491c12179f963b346aa4cb8e1b924184d79970.tar.xz |
Support adding relocations for data sections, handling the cases where
global declared symbols are initialized with references from other global
symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76540 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ELFWriterInfo.cpp')
-rw-r--r-- | lib/Target/X86/X86ELFWriterInfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ELFWriterInfo.cpp b/lib/Target/X86/X86ELFWriterInfo.cpp index 618cc5b82b..096c00ee30 100644 --- a/lib/Target/X86/X86ELFWriterInfo.cpp +++ b/lib/Target/X86/X86ELFWriterInfo.cpp @@ -64,7 +64,9 @@ long int X86ELFWriterInfo::getDefaultAddendForRelTy(unsigned RelTy) const { if (is64Bit) { switch(RelTy) { case R_X86_64_PC32: return -4; - case R_X86_64_32: return 0; + case R_X86_64_32: + case R_X86_64_64: + return 0; default: llvm_unreachable("unknown x86_64 relocation type"); } |