xref: /llvm-project/lld/test/ELF/bss-start-common.s (revision f0374e7db2dd6effa9d38894522e7fcc6ebe53ac)
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3# RUN: ld.lld %t -o %t2
4# RUN: llvm-objdump -t --section-headers %t2 | FileCheck %s
5
6## Test __bss_start is defined at the start of .bss
7
8# CHECK: Sections:
9# CHECK: Idx Name          Size     VMA                 Type
10# CHECK:   2 .bss          00000004 [[ADDR:[0-za-f]+]]  BSS
11# CHECK: SYMBOL TABLE:
12# CHECK: [[ADDR]] g        .bss 0000000000000000 __bss_start
13
14.global __bss_start
15.text
16_start:
17.comm sym1,4,4
18