[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / Object / invalid-alignment.test
blobf77a3afb3e703d6d735b7160a074fb10f9cb7819
1 # RUN: yaml2obj %s -o %t.o
2 # RUN: llvm-readobj -r %t.o 2>&1 | FileCheck %s
4 # CHECK:      Format: ELF64-x86-64
5 # CHECK-NEXT: Arch: x86_64
6 # CHECK-NEXT: AddressSize: 64bit
7 # CHECK-NEXT: LoadName:
8 # CHECK-NEXT: Relocations [
9 # CHECK-NEXT:   Section (2) .rela.foo {
10 # CHECK-NEXT:     0x0 R_X86_64_NONE - 0x0
11 # CHECK-NEXT:   }
12 # CHECK-NEXT: ]
14 --- !ELF
15 FileHeader:
16   Class:           ELFCLASS64
17   Data:            ELFDATA2LSB
18   Type:            ET_REL
19   Machine:         EM_X86_64
20 Sections:
21   - Name:            .foo
22     Type:            SHT_PROGBITS
23     Content:         42
24   - Name:            .rela.foo
25     Type:            SHT_RELA
26     Info:            .foo
27     Relocations:
28       - Offset:          0
29         Type:            R_X86_64_NONE