18 lines · plain
1# REQUIRES: x862## Test that we don't strip SHF_ALLOC .debug* or crash (PR480713## mark liveness of a merge section which has not been split).4 5# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o6# RUN: ld.lld %t.o --gc-sections --strip-debug -o %t7# RUN: llvm-readelf -S %t | FileCheck %s8 9# CHECK: .debug_gdb_scripts10 11.globl _start12_start:13 leaq .L.str(%rip), %rax14 15.section .debug_gdb_scripts,"aMS",@progbits,116.L.str:17 .asciz "Rust uses SHF_ALLOC .debug_gdb_scripts"18