http://d.puremagic.com/issues/show_bug.cgi?id=7319



--- Comment #2 from Marco Leise <marco.le...@gmx.de> 2012-01-19 07:18:03 PST ---
My personal 'fix' is to use this code - adapted from the Windows section in
toobj.c:

    #if ELFOBJ
        if (sinit->Sdt &&
            sinit->Sdt->dt == DT_azeros &&
            sinit->Sdt->DTnext == NULL &&
            !global.params.multiobj)
        {
            sinit->Sseg = UDATA;
        }
        else
        {
            sinit->Sseg = CDATA;
        }
    #endif

It seems to work with the dmd Makefile for Phobos/druntime itself and on my own
program. I don't know the compiler source code, but from what I read briefly,
"global.params.multiobj" means: compile to single .obj/.o files. If so, then
this would effect unity builds only (?)

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

Reply via email to