diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-05 01:33:53 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-05 01:33:53 +0000 |
commit | 6c1202c459ffa6d693ad92fa84e43902bc780bca (patch) | |
tree | 7b105f95ab50dfb164f274ae463085af780e3262 /test | |
parent | cc5a6cb0a22736e133a17cf4de23e3d76de8058e (diff) | |
download | external_llvm-6c1202c459ffa6d693ad92fa84e43902bc780bca.zip external_llvm-6c1202c459ffa6d693ad92fa84e43902bc780bca.tar.gz external_llvm-6c1202c459ffa6d693ad92fa84e43902bc780bca.tar.bz2 |
Handle relocations that don't point to symbols.
In ELF (as in MachO), not all relocations point to symbols. Represent this
properly by using a symbol_iterator instead of a SymbolRef. Update llvm-readobj
ELF's dumper to handle relocatios without symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rwxr-xr-x | test/Object/Inputs/elf-reloc-no-sym.x86_64 | bin | 0 -> 1768 bytes | |||
-rw-r--r-- | test/Object/elf-reloc-no-sym.test | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/Object/Inputs/elf-reloc-no-sym.x86_64 b/test/Object/Inputs/elf-reloc-no-sym.x86_64 Binary files differnew file mode 100755 index 0000000..a41b4e0 --- /dev/null +++ b/test/Object/Inputs/elf-reloc-no-sym.x86_64 diff --git a/test/Object/elf-reloc-no-sym.test b/test/Object/elf-reloc-no-sym.test new file mode 100644 index 0000000..eabde0cc --- /dev/null +++ b/test/Object/elf-reloc-no-sym.test @@ -0,0 +1,7 @@ +RUN: llvm-readobj -r %p/Inputs/elf-reloc-no-sym.x86_64 | FileCheck %s + +CHECK: Relocations [ +CHECK-NEXT: Section (1) .rela.plt { +CHECK-NEXT: 0x4011D8 R_X86_64_IRELATIVE - 0x400120 +CHECK-NEXT: } +CHECK-NEXT: ] |