mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 01:26:05 +00:00

Currently, archive file name is missing in this message. In general, we should avoid constructing strings in an ad-hoc manner and instead use toString() to get consistent output strings. Differential Revision: https://reviews.llvm.org/D43420 llvm-svn: 325416
30 lines
655 B
ArmAsm
30 lines
655 B
ArmAsm
# REQUIRES: x86
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
|
# RUN: ld.lld %t --gc-sections --print-gc-sections -o %t2 2>&1 | FileCheck -check-prefix=PRINT %s
|
|
|
|
# PRINT: removing unused section {{.*}}:(.text.x)
|
|
# PRINT-NEXT: removing unused section {{.*}}:(.text.y)
|
|
|
|
# RUN: ld.lld %t --gc-sections --print-gc-sections --no-print-gc-sections -o %t2 >& %t.log
|
|
# RUN: echo >> %t.log
|
|
# RUN: FileCheck -check-prefix=NOPRINT %s < %t.log
|
|
|
|
# NOPRINT-NOT: removing
|
|
|
|
.globl _start
|
|
.protected a, x, y
|
|
_start:
|
|
call a
|
|
|
|
.section .text.a,"ax",@progbits
|
|
a:
|
|
nop
|
|
|
|
.section .text.x,"ax",@progbits
|
|
x:
|
|
nop
|
|
|
|
.section .text.y,"ax",@progbits
|
|
y:
|
|
nop
|