Implement getRelocationAddress for MachO and ET_REL elf files.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 3 Apr 2014 23:54:35 +0000 (23:54 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 3 Apr 2014 23:54:35 +0000 (23:54 +0000)
commit7df905954106fe2302df36d96e4952b736817298
tree12b8012501c0a94fadad86472c55c5f4eafdc4ac
parent5ca1f954193c8cfe9efa53c888746abbb8edbbbc
Implement getRelocationAddress for MachO and ET_REL elf files.

With that, fix the symbolizer to work with any ELF file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205588 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELFObjectFile.h
lib/MC/MCObjectSymbolizer.cpp
lib/Object/MachOObjectFile.cpp
test/Object/Inputs/relocation-dynamic.elf-i386 [new file with mode: 0755]
test/Object/Inputs/relocation-relocatable.elf-i386 [new file with mode: 0644]
test/Object/X86/objdump-disassembly-symbolic.test