xref: /llvm-project/llvm/test/tools/llvm-objcopy/ELF/compress-debug-sections-symbols.test (revision 45ae553109af8e1e71ae5ddf3d92fc1bf531aea1)
10373bedbSGeorge Rimar# REQUIRES: zlib
20373bedbSGeorge Rimar
30373bedbSGeorge Rimar# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o
40373bedbSGeorge Rimar
50373bedbSGeorge Rimar## Test that after the compression is done we do not remove the symbol
60373bedbSGeorge Rimar## and it is placed into the right section.
70373bedbSGeorge Rimar
80373bedbSGeorge Rimar# RUN: llvm-objcopy --compress-debug-sections %t.o %t-compressed1.o
9*45ae5531SFangrui Song# RUN: llvm-readobj --symbols %t-compressed1.o | FileCheck %s
100373bedbSGeorge Rimar
110373bedbSGeorge Rimar# CHECK:        Name:    .Linfo_string0
120373bedbSGeorge Rimar# CHECK-NEXT:   Value:   0x0
130373bedbSGeorge Rimar# CHECK-NEXT:   Size:    0
140373bedbSGeorge Rimar# CHECK-NEXT:   Binding: Global
150373bedbSGeorge Rimar# CHECK-NEXT:   Type:    None
160373bedbSGeorge Rimar# CHECK-NEXT:   Other:   0
17*45ae5531SFangrui Song# CHECK-NEXT:   Section: .debug_bar
18