1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/merge-sections-reloc.s -o %t1.o
3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o
4# RUN: echo "SECTIONS {}" > %t.script
5# RUN: ld.lld -o %t --script %t.script %t1.o %t2.o
6# RUN: llvm-objdump -s %t | FileCheck %s
7
8## Check that sections content is not corrupted.
9# CHECK:      Contents of section .text:
10# CHECK-NEXT:  44332211 00000000 44332211 00000000
11# CHECK-NEXT:  f0ffffff ffffffff
12
13.globl _start
14_foo:
15 .quad 0x11223344
16 .quad _start - .
17