[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/17955] Wrong address difference on 64-bit Windows
From: |
kyrab at mail dot ru |
Subject: |
[Bug ld/17955] Wrong address difference on 64-bit Windows |
Date: |
Thu, 22 Sep 2016 15:19:52 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=17955
awson <kyrab at mail dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kyrab at mail dot ru
--- Comment #1 from awson <kyrab at mail dot ru> ---
Created attachment 9519
--> https://sourceware.org/bugzilla/attachment.cgi?id=9519&action=edit
Proper R_X86_64_PC64 reloc handling
The patch I propose fixes things for me.
Since Microsoft does *not* support R_X86_64_PC64 relocation type for PE-COFF
and it is a pure GNU extension, I've decided we can handle it in whatever way
we want.
The only known to me high-level language compiler which generates this type of
relocations on Windows is GHC (Glasgow Haskell Compiler) via LLVM backend
(native codegen backend has workaround to generate R_X86_64_PC32 relocations
instead). With no above patch applied ld generates wrong executables for it.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/17955] Wrong address difference on 64-bit Windows,
kyrab at mail dot ru <=