summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/bss-fill.test
blob: b7ed47656172f0b77c3956d9a31987c5b4910b6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# REQUIRES: x86
# RUN: echo '.section .bss,"",@nobits; .short 0' \
# RUN:   | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t.o
# RUN: ld.lld -o %t --script %s %t.o

## Check we do not crash.

SECTIONS {
 .bss : {
   . += 0x10000;
   *(.bss)
 } =0xFF
}
OpenPOWER on IntegriCloud