1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o 3# RUN: ld.lld --emit-relocs --icf=all %t.o -o %t 4# RUN: llvm-readobj -r %t | FileCheck %s 5 6# CHECK: Relocations [ 7# CHECK-NEXT: Section (3) .rela.text { 8# CHECK-NEXT: 0x201128 R_X86_64_64 .text 0x11 9# CHECK-NEXT: 0x201130 R_X86_64_64 .text 0x11 10# CHECK-NEXT: 0x201139 R_X86_64_64 .rodata 0x0 11# CHECK-NEXT: } 12# CHECK-NEXT: ] 13 14.rodata 15quux: 16.quad 0xfe 17 18.section .text.foo,"ax" 19foo: 20.quad quux 21 22.section .text.bar,"ax" 23bar: 24.quad quux 25 26.text 27.quad foo 28.quad bar 29 30.global _start 31_start: 32 nop 33