150
|
1 // REQUIRES: x86
|
|
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
3
|
|
4 // RUN: ld.lld -static -export-dynamic %t.o -o %tout
|
|
5 // RUN: llvm-nm -U %tout | FileCheck %s
|
|
6
|
|
7 // RUN: ld.lld -export-dynamic %t.o -o %tout
|
|
8 // RUN: llvm-nm -U %tout | FileCheck %s
|
|
9
|
|
10 // CHECK: __rela_iplt_end
|
|
11 // CHECK: __rela_iplt_start
|
|
12
|
|
13 .text
|
|
14 .type foo STT_GNU_IFUNC
|
|
15 .globl foo
|
|
16 foo:
|
|
17 ret
|
|
18
|
|
19 .globl _start
|
|
20 _start:
|
|
21 call foo
|
|
22 movl $__rela_iplt_start,%edx
|
|
23 movl $__rela_iplt_end,%edx
|