Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore addrsig sections corrupted by strip
When removing symbols, the indices in .llvm_addrsig also needs to be updated, but binutils is not aware of this and leaves the table in a corrupt state. Use the same test as what LLD uses to reject potentially corrupted addrsig sections. Unfortunately, testing this seems tricky. While producing a file with OOB addrsig index is not hard, it's hard to consistently trigger a segfault with that access. Signed-off-by: Tatsuyuki Ishi <[email protected]>
- Loading branch information