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: [email protected]
          Reporter: [email protected]

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.

--

Reply via email to