[SandboxIR][Doc] Add Quick start notes (#123992)
[llvm-project.git] / lld / test / ELF / linkerscript / discard-linkorder.s
blob8fa831a7844d5b94fa629f99a8ba60880821203c
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: echo "SECTIONS { /DISCARD/ : { *(.foo) } }" > %t.script
4 # RUN: ld.lld -o %t1 --script %t.script %t
5 # RUN: llvm-objdump --section-headers %t1 | FileCheck %s
7 # CHECK-NOT: .foo
8 # CHECK-NOT: .bar
9 # CHECK-NOT: .zed
10 # CHECK-NOT: .moo
12 ## Sections dependency tree for testcase is:
13 ## (.foo)
14 ## | |
15 ## | --(.bar)
16 ## |
17 ## --(.zed)
18 ## |
19 ## --(.moo)
22 .section .foo,"a"
23 .quad 0
25 .section .bar,"ao",@progbits,.foo
26 .quad 0
28 .section .zed,"ao",@progbits,.foo
29 .quad 0
31 .section .moo,"ao",@progbits,.zed
32 .quad 0