summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/double-bss.test
blob: 7a7a6519db49141d740099324ca608da9840bed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# REQUIRES: x86
# RUN: echo '.short 0; .bss; .zero 4; .comm q,128,8' \
# RUN:   | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t
# RUN: ld.lld -o %t1 --script %s %t
# RUN: llvm-readelf -S %t1 | FileCheck %s
# CHECK:      .bss1 NOBITS
# CHECK-NEXT: .bss2 NOBITS

SECTIONS {
  . = SIZEOF_HEADERS;
  .text : { *(.text*) }
  .bss1 : { *(.bss) }
  .bss2 : { *(COMMON) }
}
OpenPOWER on IntegriCloud