Rui Ueyama | fc6a4b0 | 2016-04-07 21:04:51 +0000 | [diff] [blame] | 1 | # REQUIRES: x86 |
| 2 | |
| 3 | # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux -g %s -o %t |
| 4 | # RUN: ld.lld %t -o %t2 |
| 5 | # RUN: llvm-readobj -sections -symbols %t2 | FileCheck -check-prefix=DEFAULT %s |
| 6 | # RUN: ld.lld %t -o %t2 --strip-debug |
| 7 | # RUN: llvm-readobj -sections -symbols %t2 | FileCheck -check-prefix=STRIP %s |
Rui Ueyama | c4354a3 | 2016-04-07 21:10:09 +0000 | [diff] [blame] | 8 | # RUN: ld.lld %t -o %t2 -S |
| 9 | # RUN: llvm-readobj -sections -symbols %t2 | FileCheck -check-prefix=STRIP %s |
Rui Ueyama | fc6a4b0 | 2016-04-07 21:04:51 +0000 | [diff] [blame] | 10 | # RUN: ld.lld %t -o %t2 --strip-all |
| 11 | # RUN: llvm-readobj -sections -symbols %t2 | FileCheck -check-prefix=STRIP %s |
| 12 | |
| 13 | # DEFAULT: Name: .debug_info |
| 14 | # DEFAULT: Name: .debug_abbrev |
| 15 | # DEFAULT: Name: .debug_aranges |
| 16 | # DEFAULT: Name: .debug_line |
| 17 | |
| 18 | # STRIP-NOT: Name: .debug_info |
| 19 | # STRIP-NOT: Name: .debug_abbrev |
| 20 | # STRIP-NOT: Name: .debug_aranges |
| 21 | # STRIP-NOT: Name: .debug_line |
| 22 | |
| 23 | .globl _start |
| 24 | _start: |
| 25 | ret |