[Issue 14976] New: object file output is unstable/different

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Aug 29 04:38:48 PDT 2015


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

          Issue ID: 14976
           Summary: object file output is unstable/different
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: code at dawg.eu

The order in which undefined symbols are emitted depend on the allocated
address of symbols (which in turn change with ASLR).
This is problematic for testing purposes but also prevents from caching linker
steps.

https://github.com/D-Programming-Language/dmd/blob/20771f89a16d9ab663b2964db8d49706cfa0e1dd/src/backend/cgen.c#L501

A solution would be to use a string table instead of AArray.

--


More information about the Digitalmars-d-bugs mailing list