[llvm-readelf] - Report a warning when .hash section contains a chain with a cycle.
[llvm-complete.git] / test / tools / llvm-nm / X86 / weak.test
blob4fc03eaffb90fc9626135fe6fefbf57b09e29e8b
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
5 FileHeader:
6   Class:           ELFCLASS64
7   Data:            ELFDATA2LSB
8   Type:            ET_REL
9   Machine:         EM_X86_64
10 Sections:
11   - Name: .text
12     Type: SHT_PROGBITS
13   - Name: .data
14     Type: SHT_PROGBITS
15 Symbols:
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
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