1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/tools/llvm-readobj/coff-basereloc.test
Rui Ueyama 520b1e8263 llvm-readobj: fix off-by-one error in COFFDumper
It printed out base relocation table header as table entry.
This patch also makes llvm-readobj to not skip ABSOLUTE entries
becuase it was confusing.

llvm-svn: 222299
2014-11-19 02:07:10 +00:00

25 lines
608 B
Plaintext

RUN: llvm-readobj -coff-basereloc %p/Inputs/basereloc.obj.coff-i386 | FileCheck %s
CHECK: Format: COFF-i386
CHECK-NEXT: Arch: i386
CHECK-NEXT: AddressSize: 32bit
CHECK-NEXT: BaseReloc [
CHECK-NEXT: Entry {
CHECK-NEXT: Type: HIGHLOW
CHECK-NEXT: Address: 0x1004
CHECK-NEXT: }
CHECK-NEXT: Entry {
CHECK-NEXT: Type: HIGHLOW
CHECK-NEXT: Address: 0x100A
CHECK-NEXT: }
CHECK-NEXT: Entry {
CHECK-NEXT: Type: HIGHLOW
CHECK-NEXT: Address: 0x1010
CHECK-NEXT: }
CHECK-NEXT: Entry {
CHECK-NEXT: Type: ABSOLUTE
CHECK-NEXT: Address: 0x1000
CHECK-NEXT: }
CHECK-NEXT: ]