llvm-project/lld/test/elf/Hexagon/zerofillquick-sdata.test

19 lines
702 B
Plaintext

# This tests that a typeZeroFillFast atom is associated with a section that has
# the correct memory size.
RUN: lld -flavor gnu -target hexagon %p/Inputs/sdata1.o %p/Inputs/sdata2.o \
RUN: -o %t --noinhibit-exec -static
RUN: llvm-readobj -sections %t | FileCheck -check-prefix=CHECKSECTIONSANDSIZE %s
CHECKSECTIONSANDSIZE: Section {
CHECKSECTIONSANDSIZE: Name: .sdata (13)
CHECKSECTIONSANDSIZE: Address: 0x1000
CHECKSECTIONSANDSIZE: Offset: 0x1000
CHECKSECTIONSANDSIZE: Size: 24
CHECKSECTIONSANDSIZE: }
CHECKSECTIONSANDSIZE: Section {
CHECKSECTIONSANDSIZE: Name: .bss (20)
CHECKSECTIONSANDSIZE: Address: 0x1018
CHECKSECTIONSANDSIZE: Offset: 0x1018
CHECKSECTIONSANDSIZE: }