diff options
Diffstat (limited to 'llvm/test/tools/llvm-nm/ifunc.test')
| -rw-r--r-- | llvm/test/tools/llvm-nm/ifunc.test | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-nm/ifunc.test b/llvm/test/tools/llvm-nm/ifunc.test new file mode 100644 index 00000000000..fdc3ced971a --- /dev/null +++ b/llvm/test/tools/llvm-nm/ifunc.test @@ -0,0 +1,27 @@ +## 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 |

