19 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3 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.script8# RUN: ld.lld -o %t --script %t.script %t.o9# RUN: llvm-objdump --section-headers %t | FileCheck %s10# CHECK-NOT: .debug_info11 12# RUN: echo "SECTIONS { .debug_info foo : { *(.debug_info) } }" > %t2.script13# RUN: ld.lld -o %t2 --script %t2.script %t.o14# RUN: llvm-objdump --section-headers %t2 | FileCheck %s --check-prefix=SEC15# SEC: .debug_info16 17.globl foo18foo:19