41 lines · plain
1## Test that the symbol type of STT_GNU_IFUNC is 'i'.2 3# RUN: yaml2obj %s -o %t4# RUN: llvm-nm --no-sort %t | FileCheck %s5 6# CHECK: i ifunc_local7# CHECK-NEXT: i ifunc_global8# CHECK-NEXT: i ifunc_weak9# CHECK-NEXT: U ifunc_undef10# CHECK-NEXT: w ifunc_undef_weak11 12!ELF13FileHeader:14 Class: ELFCLASS6415 Data: ELFDATA2LSB16 Type: ET_REL17 Machine: EM_X86_6418Sections:19 - Name: .text20 Type: SHT_PROGBITS21 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]22Symbols:23 - Name: ifunc_local24 Type: STT_GNU_IFUNC25 Binding: STB_LOCAL26 Section: .text27 - Name: ifunc_global28 Type: STT_GNU_IFUNC29 Binding: STB_GLOBAL30 Section: .text31 - Name: ifunc_weak32 Type: STT_GNU_IFUNC33 Binding: STB_WEAK34 Section: .text35 - Name: ifunc_undef36 Type: STT_GNU_IFUNC37 Binding: STB_GLOBAL38 - Name: ifunc_undef_weak39 Type: STT_GNU_IFUNC40 Binding: STB_WEAK41