Support printing relocations in files with no section table.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242998 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-07-23 09:11:05 +00:00
parent 7528c1963f
commit 2b11aef2f4
3 changed files with 21 additions and 4 deletions
+12
View File
@@ -35,3 +35,15 @@ RUN: %p/Inputs/hello-world.elf-x86-64 | FileCheck %s --check-prefix=DYN
// DYN-NEXT: Addend: 0x0
// DYN-NEXT: }
// DYN-NEXT: }
RUN: llvm-readobj -dyn-relocations -expand-relocs \
RUN: %p/Inputs/rel-no-sec-table.elf-x86-64 | FileCheck %s --check-prefix=DYN2
// DYN2: Dynamic Relocations {
// DYN2-NEXT: Relocation {
// DYN2-NEXT: Offset: 0x12F0
// DYN2-NEXT: Type: R_X86_64_GLOB_DAT (6)
// DYN2-NEXT: Symbol: g
// DYN2-NEXT: Addend: 0x0
// DYN2-NEXT: }
// DYN2-NEXT: }