blob: 2b7b38498e0b9ccd69cfe75eaeccfcf39332da43 [file] [log] [blame]
Inna Palantff3f07a2019-07-11 16:15:26 -07001# 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
Chih-Hung Hsieh43f06942019-12-19 15:01:08 -08005# RUN: llvm-readelf -S %t | FileCheck %s
Inna Palantff3f07a2019-07-11 16:15:26 -07006
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