[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / non-alloc-link-order-gc.s
blobc4a1ce65a9b289ab4e97ee6028e86fb6cda17758
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: ld.lld %t.o -o %t1 --gc-sections
4 # RUN: llvm-objdump --section-headers -D %t1 | FileCheck %s
6 ## Check that we are able to GC non-allocatable metadata sections without crash.
8 # CHECK: Name Size
9 # CHECK: .stack_sizes 00000001
11 # CHECK: Disassembly of section .stack_sizes:
12 # CHECK-EMPTY:
13 # CHECK-NEXT: <.stack_sizes>:
14 # CHECK-NEXT: 01
16 .section .text.live,"ax",@progbits
17 .globl live
18 live:
19 nop
21 .section .stack_sizes,"o",@progbits,.text.live,unique,0
22 .byte 1
24 .section .text.dead,"ax",@progbits
25 .globl dead
26 dead:
27 nop
29 .section .stack_sizes,"o",@progbits,.text.dead,unique,1
30 .byte 2
32 .section .text.main,"ax",@progbits
33 .globl _start
34 _start:
35 callq live@PLT