2
0

coff-invalid.test 458 B

12345678910111213
  1. RUN: llvm-readobj -s %p/Inputs/invalid-bad-section-address.coff 2>&1 | \
  2. RUN: FileCheck --check-prefix=SECTIONS %s
  3. SECTIONS: Section {
  4. SECTIONS-NEXT: Number: 1
  5. SECTIONS-NEXT: Name: .text (2E 74 65 78 74 00 00 00)
  6. SECTIONS-NEXT: VirtualSize: 0x0
  7. SECTIONS-NEXT: VirtualAddress: 0x1000000
  8. RUN: not llvm-readobj -r %p/Inputs/invalid-bad-section-address.coff 2>&1 | \
  9. RUN: FileCheck %s
  10. CHECK: Sections with relocations should have an address of 0