1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/tools/llvm-nm/ifunc.test
Fangrui Song 8e823f1246 [llvm-nm] Display STT_GNU_IFUNC as 'i'
Reviewed By: grimar

Differential Revision: https://reviews.llvm.org/D71803
2019-12-25 09:47:53 -08:00

28 lines
573 B
Plaintext

## 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
!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