1# REQUIRES: x86
2
3## Test that we keep a SHT_REL[A] section which relocates a SHF_MERGE section
4## in -r mode. The relocated SHF_MERGE section is handled as non-mergeable.
5
6# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
7# RUN: ld.lld -r %t.o -o %t
8# RUN: llvm-readobj -S %t | FileCheck %s
9
10# CHECK:     Name: .rodata.cst8
11# CHECK-NOT: }
12# CHECK:     Size: 16
13# CHECK:     Name: .rela.rodata.cst8
14# CHECK-NOT: }
15# CHECK:     Size: 48
16
17foo:
18
19.section .rodata.cst8,"aM",@progbits,8,unique,0
20.quad foo
21
22.section .rodata.cst8,"aM",@progbits,8,unique,1
23.quad foo
24