summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/yaml2obj/elf-symbols-binding-order.yaml
blob: 1c9fbe30e4e2040364f958117cc32e490546fcd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## Check we restrict placing local symbols after global in .symtab
## We might want to change it later to allow doing that
## for producing broken outputs.

# RUN: not yaml2obj %s -o %t 2>&1 | FileCheck %s
# CHECK: error: Local symbol 'bar' after global in Symbols list.

--- !ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  Type:            ET_REL
  Machine:         EM_X86_64
Symbols:
  - Name:    foo
    Binding: STB_GLOBAL
  - Name:    bar
    Binding: STB_LOCAL
OpenPOWER on IntegriCloud