1# REQUIRES: x86 2 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o 4# RUN: ld.lld %t.o -o %t --gc-sections 5# RUN: llvm-readelf -S %t | FileCheck %s 6 7# CHECK: .merge1 PROGBITS {{[0-9a-z]*}} {{[0-9a-z]*}} 000004 8 9 .global _start 10_start: 11 .quad .Lfoo 12 13 .section .merge1,"aM",@progbits,4 14 .p2align 2 15.Lfoo: 16 .long 1 17.Lbar: 18 .long 2 19 20 .section .merge2,"aM",@progbits,4 21 .p2align 2 22.Lzed: 23 .long 1 24 25 .section bar 26 .quad .Lbar 27 .quad .Lzed 28