• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s -o %t
2# RUN: llvm-nm -B -S %t | FileCheck --match-full-lines %s
3# RUN: llvm-nm -W -B -S %t | count 0
4!ELF
5FileHeader:
6  Class:           ELFCLASS64
7  Data:            ELFDATA2LSB
8  Type:            ET_REL
9  Machine:         EM_X86_64
10Sections:
11  - Name: .text
12    Type: SHT_PROGBITS
13  - Name: .data
14    Type: SHT_PROGBITS
15Symbols:
16  - Name:    weak_func
17    Type:    STT_FUNC
18    Section: .text
19    Binding: STB_WEAK
20    Size:    17
21  - Name:    weak_var
22    Type:    STT_OBJECT
23    Section: .data
24    Binding: STB_WEAK
25    Size:    4
26  - Name:    weak_extern_func
27    Type:    STT_FUNC
28    Binding: STB_WEAK
29  - Name:    weak_extern_var
30    Type:    STT_OBJECT
31    Binding: STB_WEAK
32
33# CHECK:                  w weak_extern_func
34# CHECK:                  v weak_extern_var
35# CHECK: 0000000000000000 0000000000000011 W weak_func
36# CHECK: 0000000000000000 0000000000000004 V weak_var
37