[Issue 11684] SIGSEGV, std.stdio.__T7writelnTAyaZ.writeln() at std/stdio.d:1906

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 22 01:27:53 PST 2013


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



--- Comment #11 from Martin Nowak <code at dawg.eu> 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: -------


More information about the Digitalmars-d-bugs mailing list