2016-04-08 05:04:51 +08:00
|
|
|
# REQUIRES: x86
|
2017-11-03 16:13:16 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
2016-04-08 05:04:51 +08:00
|
|
|
# RUN: ld.lld %t -o %t2 --strip-debug
|
2017-11-03 16:13:16 +08:00
|
|
|
# RUN: llvm-readobj -sections %t2 | FileCheck %s
|
2016-04-08 05:10:09 +08:00
|
|
|
# RUN: ld.lld %t -o %t2 -S
|
2017-11-03 16:13:16 +08:00
|
|
|
# RUN: llvm-readobj -sections %t2 | FileCheck %s
|
2016-04-08 05:04:51 +08:00
|
|
|
# RUN: ld.lld %t -o %t2 --strip-all
|
2017-11-03 16:13:16 +08:00
|
|
|
# RUN: llvm-readobj -sections %t2 | FileCheck %s
|
2016-04-08 05:04:51 +08:00
|
|
|
|
2017-11-03 16:13:16 +08:00
|
|
|
# CHECK-NOT: Foo
|
|
|
|
# CHECK-NOT: Bar
|
2016-04-08 05:04:51 +08:00
|
|
|
|
2017-11-03 16:13:16 +08:00
|
|
|
.section .debug_Foo,"",@progbits
|
|
|
|
.section .zdebug_Bar,"",@progbits
|