2016-09-23 21:17:16 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
|
|
|
# RUN: echo "SECTIONS { /DISCARD/ : { *(.aaa*) } }" > %t.script
|
2016-10-12 20:31:34 +08:00
|
|
|
# RUN: ld.lld -o %t1 --script %t.script %t
|
2020-03-16 08:47:44 +08:00
|
|
|
# RUN: llvm-objdump --section-headers %t1 | FileCheck %s
|
2016-10-12 16:19:30 +08:00
|
|
|
|
2016-09-23 21:17:16 +08:00
|
|
|
# CHECK-NOT: .aaa
|
|
|
|
|
|
|
|
.section .aaa,"a"
|
2016-10-12 16:19:30 +08:00
|
|
|
aab:
|
2016-09-23 21:17:16 +08:00
|
|
|
.quad 0
|
2016-10-12 16:19:30 +08:00
|
|
|
|
|
|
|
.section .zzz,"a"
|
|
|
|
.quad aab
|