HomePhabricator

[ELF][HEXAGON] Add support for GOT relocations.

Description

[ELF][HEXAGON] Add support for GOT relocations.

The GOT is referenced through the symbol _GLOBAL_OFFSET_TABLE_ .

The relocation added calculates the offset into the global offset table for
the entry of a symbol. In order to get the correct TargetVA I needed to
create an new relocation expression, HEXAGON_GOT. It does
Sym.getGotVA() - In.GotPlt->getVA().

Differential Revision: https://reviews.llvm.org/D52744

Details

Committed
sidneymOct 4 2018, 7:54 AM
Differential Revision
D52744: Add support for GOT relocation support to Hexagon
Branches
Unknown
Tags
Unknown