17 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/merge-sections-reloc.s -o %t1.o3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o4# RUN: echo "SECTIONS {}" > %t.script5# RUN: ld.lld -o %t --script %t.script %t1.o %t2.o6# RUN: llvm-objdump -s %t | FileCheck %s7 8## Check that sections content is not corrupted.9# CHECK: Contents of section .text:10# CHECK-NEXT: 44332211 00000000 44332211 0000000011# CHECK-NEXT: f0ffffff ffffffff12 13.globl _start14_foo:15 .quad 0x1122334416 .quad _start - .17