https://d.puremagic.com/issues/show_bug.cgi?id=11684



--- Comment #11 from Martin Nowak <[email protected]> 2013-12-22 01:27:51 PST ---
Seems like changing the relocation at this line fixes the problem.
https://github.com/D-Programming-Language/dmd/blob/2a589a19cbd7e95880653043ebb556bf214b8340/src/backend/elfobj.c#L3436

`reltype = (config.flags3 & CFG3pic) ? R_X86_64_64 : R_X86_64_32;`

always use R_X86_64_64

`reltype = R_X86_64_64;`

I'll still have to see why this didn't fail on other platforms.
Probably because the section itself is NPTRSIZE aligned?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to