]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/elf/X86_64/largebss.test
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / elf / X86_64 / largebss.test
1 # This tests the functionality of handling BSS symbols
2 # BSS symbols don't occupy file content and are associated with typeZeroFill
3 # Any typeZeroFill content wouldn't have space reserved in the file to store
4 # its content
5
6 RUN: lld -flavor gnu -target x86_64 %p/Inputs/largebss.o --output-filetype=yaml --noinhibit-exec | FileCheck %s
7
8 CHECK:  - name:            largecommon
9 CHECK:    scope:           global
10 CHECK:    type:            zero-fill
11 CHECK:    size:            4000
12 CHECK:    merge:           as-tentative
13 CHECK:  - name:            largebss
14 CHECK:    scope:           global
15 CHECK:    type:            zero-fill
16 CHECK:    size:            4000
17 CHECK:  - name:            largetbss
18 CHECK:    scope:           global
19 CHECK:    type:            thread-zero-fill
20 CHECK:    size:            4000