Add relocation type R_X86_64_REX_GOTPCRELX
authorTamar Christina <tamar@zhox.com>
Sun, 5 Jun 2016 07:59:05 +0000 (09:59 +0200)
committerRaspbian forward porter <root@raspbian.org>
Fri, 30 Dec 2016 02:30:41 +0000 (02:30 +0000)
commit6f836157fc737f99f20c1df288eae0e9021fa34b
tree87655766a1724de050699d6982c35408b861a8cc
parent5ce58ebfc32a65ce036f6a589ca6a1a0d44b115a
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