HomePhabricator

[JITLink][ELF] PCRel32GOTLoad relocations are resolved like regular PCRel32 ones

Authored by sgraenitz on Oct 23 2020, 12:52 PM.

Description

[JITLink][ELF] PCRel32GOTLoad relocations are resolved like regular PCRel32 ones

The difference is that the former are indirect and go to the GOT while the latter go to the target directly. This info can be used to relax indirect ones that don't need the GOT (because the target is in range). We check for this optimization beforehand. For formal correctness and to avoid confusion, we should only change the relocation kind if we actually apply the relaxation.

Details

Committed
sgraenitzOct 24 2020, 5:54 AM
Parents
rGb481e00bf4de: Fix some signed/unsigned comparison gcc warnings from D87930
Branches
Unknown
Tags
Unknown