www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11406] New: ld.gold links incorrect dmd binaries

http://d.puremagic.com/issues/show_bug.cgi?id=11406

           Summary: ld.gold links incorrect dmd binaries
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: link-failure
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: code dawg.eu


--- Comment #0 from Martin Nowak <code dawg.eu> 2013-10-31 20:39:09 PDT ---
cat > bug.d << CODE
import std.stdio;

void main()
{
    writefln("Hello %1$s!", "World");
}
CODE

dmd -run bug

----

When debugging this gdb constantly barks that it can't find the function
frames.
In this specific program the format spec is incorrect.
It seems that some data/code is corrupted when linking with gold.
We should investigate whether this is an issue in dmd's codegen.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 31 2013