summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/yaml2obj/ELF/symbol-index-invalid.yaml
blob: 5072623624eca583fada9fc45042223a5585e147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Check that "Index" and "Section" cannot be used together in a symbol.

# RUN: not yaml2obj %s

!ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  Type:            ET_EXEC
  Machine:         EM_X86_64
Sections:
  - Name:            .text
    Type:            SHT_PROGBITS
    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
    Address:         0x1000
    AddressAlign:    0x0000000000000010
    Content:         "0000000000000000"
Symbols:
  Global:
    - Name:     _start
      Section:  .text
      Index:    SHN_ABS
OpenPOWER on IntegriCloud