.zdebug is unlikely used any longer: gcc -gz switched from legacy .zdebug to SHF_COMPRESSED with binutils 2.26 (2016), which has been several years. clang 14 dropped -gz=zlib-gnu support. According to Debian Code Search (`gz=zlib-gnu`), no project uses -gz=zlib-gnu. Remove .zdebug support to (a) simplify code and (b) allow removal of llvm-mc's --compress-debug-sections=zlib-gnu. In case the old object file `a.o` uses .zdebug, run `objcopy --decompress-debug-sections a.o` Reviewed By: peter.smith Differential Revision: https://reviews.llvm.org/D126793
15 lines
417 B
ArmAsm
15 lines
417 B
ArmAsm
# REQUIRES: x86, zlib
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
|
# RUN: ld.lld %t -o %t2 --strip-debug
|
|
# RUN: llvm-readobj --sections %t2 | FileCheck %s
|
|
# RUN: ld.lld %t -o %t2 -S
|
|
# RUN: llvm-readobj --sections %t2 | FileCheck %s
|
|
# RUN: ld.lld %t -o %t2 --strip-all
|
|
# RUN: llvm-readobj --sections %t2 | FileCheck %s
|
|
|
|
# CHECK-NOT: Foo
|
|
# CHECK-NOT: Bar
|
|
|
|
.section .debug_Foo,"",@progbits
|
|
.quad 0
|