diff options
-rwxr-xr-x | bolt/utils/llvm-bolt-wrapper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bolt/utils/llvm-bolt-wrapper.py b/bolt/utils/llvm-bolt-wrapper.py index a6d863ce7caa..901304d134ee 100755 --- a/bolt/utils/llvm-bolt-wrapper.py +++ b/bolt/utils/llvm-bolt-wrapper.py @@ -246,7 +246,7 @@ def find_section(offset, readelf_hdr): file_offset = int(cols[5], 16) # section size size = int(cols[2], 16) - if offset >= file_offset and offset <= file_offset + size: + if offset >= file_offset and offset < file_offset + size: if sys.stdout.isatty(): # terminal supports colors print(f"\033[1m{line}\033[0m") else: |