[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / emit-relocs-icf.s
blob59e003f38ead7f90cbfe60b00a4fbaa2b69b52cd
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
3 # RUN: ld.lld --emit-relocs --icf=all %t1.o -o %t
4 # RUN: llvm-readobj -r %t | FileCheck %s
6 # CHECK: Relocations [
7 # CHECK-NEXT: Section {{.*}} .rela.text {
8 # CHECK-NEXT: R_X86_64_32 .text 0x1
9 # CHECK-NEXT: R_X86_64_PLT32 fn 0xFFFFFFFFFFFFFFFC
10 # CHECK-NEXT: }
11 # CHECK-NEXT: ]
13 .section .text.fn,"ax",@progbits,unique,0
14 .globl fn
15 .type fn,@function
16 fn:
17 nop
19 bar:
20 movl $bar, %edx
21 callq fn@PLT
22 nop
24 .section .text.fn2,"ax",@progbits,unique,1
25 .globl fn2
26 .type fn2,@function
27 fn2:
28 nop
30 foo:
31 movl $foo, %edx
32 callq fn2@PLT
33 nop