1# REQUIRES: x86
2
3## By default local symbols are discarded from SHF_MERGE sections.
4## With --emit-relocs we should keep them.
5
6# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
7# RUN: ld.lld --emit-relocs %t.o -o %t.exe
8# RUN: llvm-readobj --relocations %t.exe | FileCheck %s
9
10# CHECK: R_X86_64_32S .Lfoo 0x8
11
12.globl  _start
13_start:
14  movq .Lfoo+8, %rax
15.section .rodata.cst16,"aM",@progbits,16
16.Lfoo:
17  .quad 0
18  .quad 0
19