[Issue 7319] .bss section not used

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 19 07:18:04 PST 2012


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



--- Comment #2 from Marco Leise <Marco.Leise at 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: -------


More information about the Digitalmars-d-bugs mailing list