28 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o4# RUN: ld.lld %t.o -o %t --gc-sections5# RUN: llvm-readelf -S %t | FileCheck %s6 7# CHECK: .merge1 PROGBITS {{[0-9a-z]*}} {{[0-9a-z]*}} 0000048 9 .global _start10_start:11 .quad .Lfoo12 13 .section .merge1,"aM",@progbits,414 .p2align 215.Lfoo:16 .long 117.Lbar:18 .long 219 20 .section .merge2,"aM",@progbits,421 .p2align 222.Lzed:23 .long 124 25 .section bar26 .quad .Lbar27 .quad .Lzed28