[Issue 20036] New: COFF: missing relocations in large object files

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 9 05:29:56 UTC 2019


          Issue ID: 20036
           Summary: COFF: missing relocations in large object files
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: r.sagitario at gmx.de

If an COFF object file section has more than 65535 relocations, only a part of
them are actually written to the object file:

__gshared int x = 7;
__gshared int*[70000] px = &x;

void main()
        foreach(p; px)
                assert(p && *p == 7);

Building on Windows with -m64 or -32mscoff causes the assertion to fail.


More information about the Digitalmars-d-bugs mailing list