zig/deps/lld/test/ELF/gnu-ifunc-dynsym.s

24 lines
460 B
ArmAsm
Raw Normal View History

2018-08-05 05:47:16 +08:00
// REQUIRES: x86
2018-01-18 06:29:21 +08:00
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
2018-08-05 05:47:16 +08:00
2018-01-18 06:29:21 +08:00
// RUN: ld.lld -static -export-dynamic %t.o -o %tout
// RUN: llvm-nm -U %tout | FileCheck %s
2018-08-05 05:47:16 +08:00
// RUN: ld.lld -export-dynamic %t.o -o %tout
// RUN: llvm-nm -U %tout | FileCheck %s
2018-01-18 06:29:21 +08:00
// CHECK: __rela_iplt_end
// CHECK: __rela_iplt_start
.text
.type foo STT_GNU_IFUNC
.globl foo
foo:
ret
.globl _start
_start:
call foo
movl $__rela_iplt_start,%edx
movl $__rela_iplt_end,%edx