[all-commits] [llvm/llvm-project] 418e4b: [BOLT] Detect incorrect update of dynamic relocati...
Maksim Panchenko via All-commits
all-commits at lists.llvm.org
Wed Apr 24 14:03:55 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 418e4b0c4ff2bc22dda318fce0293002a22fa76f
https://github.com/llvm/llvm-project/commit/418e4b0c4ff2bc22dda318fce0293002a22fa76f
Author: Maksim Panchenko <maks at fb.com>
Date: 2024-04-24 (Wed, 24 Apr 2024)
Changed paths:
M bolt/lib/Rewrite/RewriteInstance.cpp
A bolt/test/X86/indirect-goto-pie.test
M bolt/test/X86/shrinkwrapping-do-not-pessimize.s
R bolt/test/runtime/X86/Inputs/indirect_goto.c
R bolt/test/runtime/X86/indirect-goto-pie.test
Log Message:
-----------
[BOLT] Detect incorrect update of dynamic relocations (#89681)
When we rewrite dynamic relocations, there could be cases where they
reference code locations inside functions that were rewritten. When this
happens, we need to precisely map old address to a new one. Until we can
reliably perform the mapping, detect such condition and issue an error
refusing to write a broken binary.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list