[gn] port afa8aeeeec (RISCVGenExegesis.inc)
[llvm-project.git] / lld / test / ELF / linkerscript / empty-sections-expressions.s
blob44b245cfc99817a9014bd3946999d78349c23e45
1 # REQUIRES: x86
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
15 # SEC: .debug_info
17 .globl foo
18 foo: