www.digitalmars.com         C & C++   DMDScript  

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

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 puremagic.com
          Reporter: code 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.

--
Nov 30 2015