hanchenye-llvm-project/lld/test/elf/X86_64/largebss.test

21 lines
805 B
Plaintext

# This tests the functionality of handling BSS symbols
# BSS symbols don't occupy file content and are associated with typeZeroFill
# Any typeZeroFill content wouldn't have space reserved in the file to store
# its content
RUN: lld -flavor gnu -target x86_64 %p/Inputs/largebss.o --output-filetype=yaml --noinhibit-exec | FileCheck %s
CHECK: - name: largecommon
CHECK: scope: global
CHECK: type: zero-fill
CHECK: size: 4000
CHECK: merge: as-tentative
CHECK: - name: largebss
CHECK: scope: global
CHECK: type: zero-fill
CHECK: size: 4000
CHECK: - name: largetbss
CHECK: scope: global
CHECK: type: thread-zero-fill
CHECK: size: 4000