brintos

brintos / llvm-project-archived public Read only

0
0
Text · 442 B · 9f7ce70 Raw
19 lines · plain
1# REQUIRES: x862 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.o7# RUN: ld.lld --emit-relocs %t.o -o %t.exe8# RUN: llvm-readobj --relocations %t.exe | FileCheck %s9 10# CHECK: R_X86_64_32S .Lfoo 0x811 12.globl  _start13_start:14  movq .Lfoo+8, %rax15.section .rodata.cst16,"aM",@progbits,1616.Lfoo:17  .quad 018  .quad 019