2018-06-27 06:20:04 +08:00
|
|
|
// REQUIRES: x86
|
2015-12-21 18:12:06 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
|
|
// RUN: ld.lld -static %t.o -o %tout
|
2019-05-01 13:49:01 +08:00
|
|
|
// RUN: llvm-readobj --symbols %tout | FileCheck %s
|
2015-12-21 18:12:06 +08:00
|
|
|
|
|
|
|
// Check that no __rela_iplt_end/__rela_iplt_start
|
|
|
|
// appear in symtab if there is no references to them.
|
|
|
|
// CHECK: Symbols [
|
2016-03-01 02:05:21 +08:00
|
|
|
// CHECK-NOT: __rela_iplt_end
|
|
|
|
// CHECK-NOT: __rela_iplt_start
|
2015-12-21 18:12:06 +08:00
|
|
|
// CHECK: ]
|
|
|
|
|
|
|
|
.text
|
|
|
|
.type foo STT_GNU_IFUNC
|
|
|
|
.globl foo
|
|
|
|
foo:
|
|
|
|
ret
|
|
|
|
|
|
|
|
.type bar STT_GNU_IFUNC
|
|
|
|
.globl bar
|
|
|
|
bar:
|
|
|
|
ret
|
|
|
|
|
|
|
|
.globl _start
|
|
|
|
_start:
|
|
|
|
call foo
|
|
|
|
call bar
|