repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git]
/
lld
/
test
/
ELF
/
linkerscript
/
double-bss.test
blob
7a7a6519db49141d740099324ca608da9840bed6
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
9
SECTIONS {
10
. = SIZEOF_HEADERS;
11
.text : { *(.text*) }
12
.bss1 : { *(.bss) }
13
.bss2 : { *(COMMON) }
14
}