https://issues.dlang.org/show_bug.cgi?id=11435

--- Comment #8 from safety0ff.bugz <[email protected]> ---
I managed to work around this issue by modifying the following code from
src/backend/cod1.c: (line ~3573)

    if (sz <= REGSIZE)
    {   // Watch out for single byte quantities being up
        // against the end of a segment or in memory-mapped I/O
        if (!(config.exe & EX_flat) && szb == 1)
            break;
        goto L1;            // can handle it with loadea()
    }

I changed the condition to:
    if (szb < REGSIZE)
        break;

I did not test further fixes since this was good enough for me.
This should be enough information to create a "proper" fix.

--

Reply via email to