1 ## Verifies that running with --strip-unneeded removes debugging sections but
2 ## retains the .gnu_debuglink section.
4 # RUN: yaml2obj %s -o %t.o
6 # RUN: llvm-objcopy --add-gnu-debuglink=%t.debug %t.o %t.2.o
7 # RUN: llvm-strip --strip-unneeded %t.2.o -o %t.3.o
8 # RUN: llvm-readelf --sections %t.3.o | FileCheck %s
19 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
23 # CHECK: There are 5 section headers
26 # CHECK-NEXT: [ 1] .text
27 # CHECK-NEXT: [ 2] .strtab
28 # CHECK-NEXT: [ 3] .shstrtab
29 # CHECK-NEXT: [ 4] .gnu_debuglink