2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
4 ## We remove empty sections that do not reference symbols in address,
5 ## LMA, align and subalign expressions. Here we check that.
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
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