33 lines · plain
1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readelf -s - | FileCheck %s2.text3 4.type foo_impl,@function5foo_impl:6 ret7 8.type foo_resolver,@function9foo_resolver:10 mov $foo_impl, %rax11 ret12 13.type foo,@gnu_indirect_function14.set foo,foo_resolver15 16// All things below should be IFunc identical to 'foo'17.set foo2,foo18.set foo3,foo219.type foo4,@function20.set foo4,foo321 22// But tls_object should not be IFunc23.set tls,foo24.type tls,@tls_object25 26// CHECK: FUNC LOCAL DEFAULT 2 foo_impl27// CHECK-NEXT: FUNC LOCAL DEFAULT 2 foo_resolver28// CHECK-NEXT: IFUNC LOCAL DEFAULT 2 foo29// CHECK-NEXT: IFUNC LOCAL DEFAULT 2 foo230// CHECK-NEXT: IFUNC LOCAL DEFAULT 2 foo331// CHECK-NEXT: IFUNC LOCAL DEFAULT 2 foo432// CHECK-NEXT: TLS LOCAL DEFAULT 2 tls33