[Issue 10274] DMD 2.063 produces broken binaries

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 11 14:01:09 PDT 2013


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



--- Comment #26 from Jerry Quinn <jlquinn at optonline.net> 2013-06-11 14:01:07 PDT ---
(In reply to comment #25)
> (In reply to comment #23)
> > I assume this is the linker script generated by dmd -v:
> > 
> No, it's part of the output when you pass --verbose to the linker.
> When I compile dmd junk -L--verbose the linker output should contain them.
> 
> On my machine this looks like this.
> 
> 
> GNU ld version 2.23.51.0.1-3.fc18 20120806
> ...
> using internal linker script:
> ==================================================
> ...
> ==================================================
> attempt to open /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../lib64/crt1.o
> succeeded
> ...
> 
> > jlquinn at wyvern:~/re/test$ ldd --version
> The linker is usually called ld, ldd is a different tool.

oops:

jlquinn at wyvern:~/re/test$ ld --version
GNU gold (GNU Binutils for Ubuntu 2.22.90.20120924) 1.11
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.


OK, apparently it's a difference between gnu ld and gold.  There doesn't seem
to be a linker script.  -L--verbose doesn't dump the script for gold:


jlquinn at wyvern:~/re/test$ /home/jlquinn/dmd2/linux/bin64/dmd junk.d
-L--debug=script
/usr/bin/ld: Dumping linker script
jlquinn at wyvern:~/re/test$

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


More information about the Digitalmars-d-bugs mailing list