blob: 81f7572aa7c5842a530c1a714def0a07c3df0982 [file] [log] [blame]
Rui Ueyamafc6a4b02016-04-07 21:04:51 +00001# 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 Ueyamac4354a32016-04-07 21:10:09 +00008# RUN: ld.lld %t -o %t2 -S
9# RUN: llvm-readobj -sections -symbols %t2 | FileCheck -check-prefix=STRIP %s
Rui Ueyamafc6a4b02016-04-07 21:04:51 +000010# 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