[yaml2obj][obj2yaml] - Do not create a symbol table by default.
[llvm-complete.git] / test / tools / llvm-objcopy / ELF / no-symbol-relocation.test
blob4b13dda6484be4f850774af6ac73c40296340318
1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objcopy %t %t2
3 # RUN: llvm-readobj --relocations %t2 | FileCheck %s
5 !ELF
6 FileHeader:
7   Class:           ELFCLASS64
8   Data:            ELFDATA2LSB
9   Type:            ET_EXEC
10   Machine:         EM_X86_64
11 Sections:
12   - Name:            .text
13     Type:            SHT_PROGBITS
14     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
15     Address:         0x1000
16     AddressAlign:    0x0000000000000010
17     Content:         "0000000000000000"
18   - Name:            .rel.text
19     Type:            SHT_REL
20     Info:            .text
21     Relocations:
22       - Offset: 0x1000
23         Type:   R_X86_64_RELATIVE
25 # CHECK:     Relocations [
26 # CHECK-NEXT:  Section (2) .rel.text {
27 # CHECK-NEXT:    0x1000 R_X86_64_RELATIVE - 0x0
28 # CHECK-NEXT:  }
29 # CHECK-NEXT:]