33 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3# RUN: ld.lld --emit-relocs --icf=all %t.o -o %t4# RUN: llvm-readobj -r %t | FileCheck %s5 6# CHECK: Relocations [7# CHECK-NEXT: Section (3) .rela.text {8# CHECK-NEXT: 0x201128 R_X86_64_64 .text 0x119# CHECK-NEXT: 0x201130 R_X86_64_64 .text 0x1110# CHECK-NEXT: 0x201139 R_X86_64_64 .rodata 0x011# CHECK-NEXT: }12# CHECK-NEXT: ]13 14.rodata15quux:16.quad 0xfe17 18.section .text.foo,"ax"19foo:20.quad quux21 22.section .text.bar,"ax"23bar:24.quad quux25 26.text27.quad foo28.quad bar29 30.global _start31_start:32 nop33