llvm-project
02482f42 - [BOLT] Properly validate relocations against internals of a function (#167451)

Commit
141 days ago
[BOLT] Properly validate relocations against internals of a function (#167451) Validation of data relocations targeting internals of a function was happening based on offsets inside a function. As a result, if multiple relocations were targeting the same offset, and one of the relocations was verified, e.g. as belonging to a jump table, then all relocations targeting the offset would be considered verified and valid. Now that we are tracking relocations pointing inside every function, we can do a better validation based on the location of the relocation. E.g., if a relocation belongs to a jump table only that relocation will be accounted for and other relocations pointing to the same address will be evaluated independently.
Author
Parents
Loading