reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
## Check we can set different bindings for symbols.

# RUN: yaml2obj %s | llvm-readobj --symbols - | FileCheck %s

!ELF
FileHeader:
  Class:   ELFCLASS64
  Data:    ELFDATA2LSB
  Type:    ET_REL
  Machine: EM_X86_64
Symbols:
  - Name:    local_symbol
    Type:    STT_OBJECT
    Binding: STB_LOCAL
  - Name:    global_symbol
    Type:    STT_OBJECT
    Binding: STB_GLOBAL
  - Name:    weak_symbol
    Type:    STT_OBJECT
    Binding: STB_WEAK

# CHECK: Symbol {
# CHECK:   Name:  (0)
# CHECK: Symbol {
# CHECK:   Name: local_symbol
# CHECK:   Binding: Local
# CHECK: Symbol {
# CHECK:   Name: global_symbol
# CHECK:   Binding: Global
# CHECK: Symbol {
# CHECK:   Name: weak_symbol
# CHECK:   Binding: Weak