summaryrefslogtreecommitdiffstats
path: root/lld/test/elf/X86_64/largebss.test
blob: dacb018320cb0bfec2a14de6d3bc72fd7150e2d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This tests the functionality of handling BSS symbols
# BSS symbols dont occupy file content and are associated with typeZeroFill
# Any typeZeroFill content wouldnot have space reserved in the file to store
# its content

RUN: lld -flavor gnu -target x86_64 %p/Inputs/largebss.o -emit-yaml | FileCheck %s


CHECK:  - name:            largecommon
CHECK:    scope:           global
CHECK:    type:            zero-fill
CHECK:    size:            4000
CHECK:    merge:           as-tentative
CHECK:    section-name:    .bss
CHECK:  - name:            largebss
CHECK:    scope:           global
CHECK:    type:            zero-fill
CHECK:    size:            4000
CHECK:    section-name:    .bss
CHECK:  - name:            largetbss
CHECK:    scope:           global
CHECK:    type:            thread-zero-fill
CHECK:    size:            4000
CHECK:    section-name:    .tbss
OpenPOWER on IntegriCloud