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 5 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: ] 12 13.section .text.fn,"ax",@progbits,unique,0 14.globl fn 15.type fn,@function 16fn: 17 nop 18 19bar: 20 movl $bar, %edx 21 callq fn@PLT 22 nop 23 24.section .text.fn2,"ax",@progbits,unique,1 25.globl fn2 26.type fn2,@function 27fn2: 28 nop 29 30foo: 31 movl $foo, %edx 32 callq fn2@PLT 33 nop 34