2016-09-21 19:29:28 +08:00
|
|
|
# REQUIRES: x86
|
2018-03-13 23:47:14 +08:00
|
|
|
# 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
|
2020-03-20 08:26:35 +08:00
|
|
|
# RUN: llvm-readelf -S %t1 | FileCheck %s
|
|
|
|
# CHECK: .bss1 NOBITS
|
|
|
|
# CHECK-NEXT: .bss2 NOBITS
|
2016-09-21 19:29:28 +08:00
|
|
|
|
2018-03-13 23:47:14 +08:00
|
|
|
SECTIONS {
|
|
|
|
. = SIZEOF_HEADERS;
|
|
|
|
.text : { *(.text*) }
|
|
|
|
.bss1 : { *(.bss) }
|
|
|
|
.bss2 : { *(COMMON) }
|
|
|
|
}
|