[BOLT][Wrapper] Fix off-by-one in find_section upper limit
authorJob Noorman <jnoorman@igalia.com>
Tue, 16 May 2023 07:23:26 +0000 (09:23 +0200)
committerJob Noorman <jnoorman@igalia.com>
Tue, 16 May 2023 07:25:06 +0000 (09:25 +0200)
commit8a5a12057e9e324c73e962d8fc9c6dfdbad31dcb
tree656718bd2e912a4fa621b867ef9d2b9b6f8e3381
parent4054c68644dfebbb584bca698a25d18d1d312bae
[BOLT][Wrapper] Fix off-by-one in find_section upper limit

find_section used to match offsets equal to file_offset + size causing
offsets to sometimes be attributed to the wrong section.

Reviewed By: Amir

Differential Revision: https://reviews.llvm.org/D149047
bolt/utils/llvm-bolt-wrapper.py