Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / yaml2obj / ELF / symbol-binding.yaml
blob33dda271d630118168045a0abb4ebb2589d1d9f1
1 ## Check we can set different bindings for symbols.
3 # RUN: yaml2obj %s | llvm-readobj --symbols - | FileCheck %s
5 !ELF
6 FileHeader:
7   Class: ELFCLASS64
8   Data:  ELFDATA2LSB
9   Type:  ET_REL
10 Symbols:
11   - Name:    local_symbol
12     Type:    STT_OBJECT
13     Binding: STB_LOCAL
14   - Name:    global_symbol
15     Type:    STT_OBJECT
16     Binding: STB_GLOBAL
17   - Name:    weak_symbol
18     Type:    STT_OBJECT
19     Binding: STB_WEAK
21 # CHECK: Symbol {
22 # CHECK:   Name:  (0)
23 # CHECK: Symbol {
24 # CHECK:   Name: local_symbol
25 # CHECK:   Binding: Local
26 # CHECK: Symbol {
27 # CHECK:   Name: global_symbol
28 # CHECK:   Binding: Global
29 # CHECK: Symbol {
30 # CHECK:   Name: weak_symbol
31 # CHECK:   Binding: Weak