brintos

brintos / llvm-project-archived public Read only

0
0
Text · 733 B · fe80562 Raw
25 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux-gnu %s | llvm-readelf -hs - | FileCheck %s --check-prefixes=CHECK,GNU2# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-freebsd %s | llvm-readelf -hs - | FileCheck %s --check-prefixes=CHECK,FREEBSD3 4.text5 6.type  foo_impl,@function7foo_impl:8  ret9 10.type  foo_resolver,@function11foo_resolver:12  mov $foo_impl, %rax13  ret14 15.type  foo,@gnu_indirect_function16.set   foo,foo_resolver17 18## ELFOSABI_NONE is changed to ELFOSABI_GNU. Other OSABI values are unchanged.19# GNU:        OS/ABI: UNIX - GNU20# FREEBSD:    OS/ABI: UNIX - FreeBSD21 22# CHECK:      FUNC    LOCAL  DEFAULT    2 foo_impl23# CHECK-NEXT: FUNC    LOCAL  DEFAULT    2 foo_resolver24# CHECK-NEXT: IFUNC   LOCAL  DEFAULT    2 foo25