Add relocation type R_X86_64_REX_GOTPCRELX
authorTamar Christina <tamar@zhox.com>
Sun, 5 Jun 2016 07:59:05 +0000 (09:59 +0200)
committerClint Adams <clint@debian.org>
Sat, 17 Dec 2016 02:44:45 +0000 (02:44 +0000)
commitffcd081e298d2fb115556c97e39d40116742304a
tree499aa7fba9cb30147d2898df2767d1d40430220e
parentf303a68474668960c8c83fd433bec285cac4801d
Add relocation type R_X86_64_REX_GOTPCRELX

Summary:
Adding support for the `R_X86_64_REX_GOTPCRELX` relocation type.
This relocation is treated by the linker the same as the `R_X86_64_GOTPCRELX` type
`G + GOT + A - P` to generate relative offsets to the GOT.
The `REX` prefix has no influence in this stage.

This is based on https://github.com/hjl-tools/x86-psABI/wiki/x86-64-psABI-r252.pdf

Test Plan: ./validate

Reviewers: erikd, austin, bgamari, simonmar

Reviewed By: erikd

Subscribers: thomie, #ghc_windows_task_force

Differential Revision: https://phabricator.haskell.org/D2303

GHC Trac Issues: #12147

Gbp-Pq: Name R_X86_64_REX_GOTPCRELX
rts/Linker.c