blob: 035c925da04a37ddf2dbd384195d85eef470c123 (
plain)
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
33
34
35
36
37
38
39
40
|
## Test that the symbol type of STT_GNU_IFUNC is 'i'.
# RUN: yaml2obj %s -o %t
# RUN: llvm-nm --no-sort %t | FileCheck %s
# CHECK: i ifunc_local
# CHECK-NEXT: i ifunc_global
# CHECK-NEXT: i ifunc_weak
# CHECK-NEXT: U ifunc_undef
# CHECK-NEXT: w ifunc_undef_weak
!ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Symbols:
- Name: ifunc_local
Type: STT_GNU_IFUNC
Binding: STB_LOCAL
Section: .text
- Name: ifunc_global
Type: STT_GNU_IFUNC
Binding: STB_GLOBAL
Section: .text
- Name: ifunc_weak
Type: STT_GNU_IFUNC
Binding: STB_WEAK
Section: .text
- Name: ifunc_undef
Type: STT_GNU_IFUNC
Binding: STB_GLOBAL
- Name: ifunc_undef_weak
Type: STT_GNU_IFUNC
Binding: STB_WEAK
|