[Issue 15392] New: dmd object files fail to link with ld.gold

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Nov 30 18:23:38 PST 2015


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

          Issue ID: 15392
           Summary: dmd object files fail to link with ld.gold
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: code at dawg.eu

Recent master versions of dmd trigger an ld.gold assertion.
/usr/bin/ld: internal error in add_output_section_to_load, at output.cc:4093

Seems like it complains about input section having a different order than the
mapping in the linker script.
https://sourceware.org/git/?p=binutils.git;a=blob;f=gold/output.cc;hb=a0a1bb07cb2c03b7d34f12e734c6f363ddb7c7b2#l4135

Apparently caused by this PR.
https://github.com/D-Programming-Language/dmd/pull/5264

In my linker script .eh_frame follows .rodata but precedes .tdata.

--


More information about the Digitalmars-d-bugs mailing list