zig/deps/lld/test/ELF/linkerscript/discard-section.s

15 lines
330 B
ArmAsm
Raw Normal View History

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
# RUN: echo "SECTIONS { /DISCARD/ : { *(.aaa*) } }" > %t.script
# RUN: ld.lld -o %t1 --script %t.script %t
# RUN: llvm-objdump -section-headers %t1 | FileCheck %s
# CHECK-NOT: .aaa
.section .aaa,"a"
aab:
.quad 0
.section .zzz,"a"
.quad aab