Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / aarch64-gnu-ifunc-nosym.s
blob69e45682b0149179ccc33ae86d30df32c07a5c75
1 // REQUIRES: aarch64
2 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux-gnu %s -o %t.o
3 // RUN: ld.lld -static %t.o -o %tout
4 // RUN: llvm-readobj --symbols %tout | FileCheck %s
6 // Check that no __rela_iplt_end/__rela_iplt_start
7 // appear in symtab if there is no references to them.
8 // CHECK: Symbols [
9 // CHECK-NOT: __rela_iplt_end
10 // CHECK-NOT: __rela_iplt_start
11 // CHECK: ]
13 .text
14 .type foo STT_GNU_IFUNC
15 .globl foo
16 foo:
17 ret
19 .type bar STT_GNU_IFUNC
20 .globl bar
21 bar:
22 ret
24 .globl _start
25 _start:
26 bl foo
27 bl bar