From e0deed0110ce2627d19eae04c16e8341f1d81269 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Fri, 26 Aug 2016 15:19:37 +0000 Subject: ghc: add comment to relocation patch --- pkgs/development/compilers/ghc/relocation.patch | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkgs/development/compilers/ghc/relocation.patch') diff --git a/pkgs/development/compilers/ghc/relocation.patch b/pkgs/development/compilers/ghc/relocation.patch index c5b1f6c560da..b9becfc86b54 100644 --- a/pkgs/development/compilers/ghc/relocation.patch +++ b/pkgs/development/compilers/ghc/relocation.patch @@ -1,3 +1,11 @@ +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 caused breakage when enabling relro/bindnow hardening e.g. in ghcPaclages.vector + +Source: https://phabricator.haskell.org/D2303#67070 diff --git a/rts/Linker.c b/rts/Linker.c --- a/rts/Linker.c +++ b/rts/Linker.c -- cgit 1.4.1