Strip tools cause a few symbols in .dynsym to have bad section index. This update safely keeps such broken symbols intact. Test Plan: ``` ninja check-bolt ``` Reviewed By: Amir Differential Revision: https://reviews.llvm.org/D130073
9 lines
293 B
Plaintext
9 lines
293 B
Plaintext
# This test checks if BOLT can process stripped binaries, where symbol's section
|
|
# header index is corrupted due to strip tool.
|
|
|
|
# RUN: yaml2obj %p/Inputs/broken_dynsym.yaml -o %t
|
|
# RUN: llvm-strip -s %t
|
|
# RUN: llvm-bolt %t -o %t.bolt | FileCheck %s
|
|
|
|
# CHECK-NOT: section index out of bounds
|