zig/deps/lld/test/ELF/gc-sections-print.s
Andrew Kelley 4794281d64 embed LLD 5.0.0
This is 48aaa9f66120f72b5d7e4a90b32fee40a3386ce9 from the
git monorepo.
2017-08-27 17:46:59 -04:00

24 lines
477 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 from '.text.x' in file
# PRINT-NEXT: removing unused section from '.text.y' in file
.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