• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Check we can set different bindings for symbols.
2
3# RUN: yaml2obj %s | llvm-readobj --symbols - | FileCheck %s
4
5!ELF
6FileHeader:
7  Class: ELFCLASS64
8  Data:  ELFDATA2LSB
9  Type:  ET_REL
10Symbols:
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
20
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
32