xref: /llvm-project/lld/test/ELF/linkerscript/double-bss.test (revision 09ac859c136b406231ef7547f3800111dd00bc7e)
1# REQUIRES: x86
2# RUN: echo '.short 0; .bss; .zero 4; .comm q,128,8' \
3# RUN:   | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t
4# RUN: ld.lld -o %t1 --script %s %t
5# RUN: llvm-readelf -S %t1 | FileCheck %s
6# CHECK:      .bss1 NOBITS
7# CHECK-NEXT: .bss2 NOBITS
8
9SECTIONS {
10  . = SIZEOF_HEADERS;
11  .text : { *(.text*) }
12  .bss1 : { *(.bss) }
13  .bss2 : { *(COMMON) }
14}
15