18 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t.o3# RUN: ld.lld %t.o --script %s -o %t14# RUN: llvm-readobj --symbols %t1 | FileCheck %s5 6## We had a bug when LLD increased the size of the output section even7## if it was empty. That happened because of empty synthetic sections included.8## Here we check that size of empty output section is zero.9 10# CHECK: Name: foo11# CHECK-NEXT: Value: 0x012 13SECTIONS {14 . = 0x1000;15 .bss : { *(.bss*) *(COMMON) }16 foo = SIZEOF(.bss);17}18