xref: /llvm-project/bolt/test/X86/broken_dynsym.test (revision 11791ae7b0b05b8bd8d806331ff51da618912cf8)
1## This test checks if BOLT can process stripped binaries, where symbol's section
2## header index is corrupted due to strip tool.
3
4# RUN: yaml2obj %p/Inputs/broken_dynsym.yaml -o %t
5# RUN: llvm-strip -s %t
6# RUN: llvm-bolt %t -o %t.bolt --allow-stripped | FileCheck %s
7
8# CHECK-NOT: section index out of bounds
9