1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o 3 4## We remove empty sections that do not reference symbols in address, 5## LMA, align and subalign expressions. Here we check that. 6 7# RUN: echo "SECTIONS { .debug_info 0 : { *(.debug_info) } }" > %t.script 8# RUN: ld.lld -o %t --script %t.script %t.o 9# RUN: llvm-objdump --section-headers %t | FileCheck %s 10# CHECK-NOT: .debug_info 11 12# RUN: echo "SECTIONS { .debug_info foo : { *(.debug_info) } }" > %t2.script 13# RUN: ld.lld -o %t2 --script %t2.script %t.o 14# RUN: llvm-objdump --section-headers %t2 | FileCheck %s --check-prefix=SEC 15# SEC: .debug_info 16 17.globl foo 18foo: 19