brintos

brintos / llvm-project-archived public Read only

0
0
Text · 721 B · c9233ce Raw
20 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -triple x86_64-pc-linux %s -o %t.o -filetype=obj4# RUN: ld.lld -o %t.so --gc-sections %t.o --print-gc-sections -shared 2>&1 | \5# RUN:   FileCheck -check-prefix=CHECK %s6 7# RUN: echo "SECTIONS { /DISCARD/ : { *(.foo) } }" > %t.script8# RUN: ld.lld -o %t.so -T %t.script %t.o --print-gc-sections -shared 2>&1 | \9# RUN:   FileCheck -check-prefix=QUIET --allow-empty %s10 11# RUN: echo "SECTIONS { .foo : { *(.foo) } }" > %t2.script12# RUN: ld.lld -o %t.so -T %t2.script --gc-sections %t.o --print-gc-sections -shared 2>&1 | \13# RUN:   FileCheck -check-prefix=CHECK %s14 15.section .foo,"a"16.quad 017 18# CHECK: removing unused section {{.*}}:(.foo)19# QUIET-NOT: removing unused section {{.*}}:(.foo)20