Debian Codegraph @

llvm/test/tools/llvm-nm/X86/unique.test

raw
1 ## Check that we print 'u' for unique symbols
2 ## and 'U' for a unique symbol without a section.
3 # RUN: yaml2obj %s | llvm-nm - | FileCheck %s
4
5 --- !ELF
6 FileHeader:
7 Class: ELFCLASS64
8 Data: ELFDATA2LSB
9 Type: ET_REL
10 Machine: EM_X86_64
11 Sections:
12 - Name: .nobits
13 Type: SHT_NOBITS
14 - Name: .progbits
15 Type: SHT_PROGBITS
16 - Name: .progbits_alloc
17 Type: SHT_PROGBITS
18 Flags: [SHF_ALLOC]
19 - Name: .progbits_alloc_write
20 Type: SHT_PROGBITS
21 Flags: [SHF_ALLOC, SHF_WRITE]
22 - Name: .progbits_execinstr
23 Type: SHT_PROGBITS
24 Flags: [SHF_EXECINSTR]
25 Symbols:
26 - Name: nosection
27 Binding: STB_GNU_UNIQUE
28 - Name: nobits
29 Section: .nobits
30 Binding: STB_GNU_UNIQUE
31 - Name: progbits
32 Section: .progbits
33 Binding: STB_GNU_UNIQUE
34 - Name: progbits_alloc
35 Section: .progbits_alloc
36 Binding: STB_GNU_UNIQUE
37 - Name: progbits_alloc_write
38 Section: .progbits_alloc_write
39 Binding: STB_GNU_UNIQUE
40 - Name: progbits_execinstr
41 Section: .progbits_execinstr
42 Binding: STB_GNU_UNIQUE
43 ...
44
45 # CHECK: 0000000000000000 u nobits
46 # CHECK: U nosection
47 # CHECK: 0000000000000000 u progbits
48 # CHECK: 0000000000000000 u progbits_alloc
49 # CHECK: 0000000000000000 u progbits_alloc_write
50 # CHECK: 0000000000000000 u progbits_execinstr