vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
authorTristan Gingold <gingold@adacore.com>
Wed, 20 Apr 2011 14:30:58 +0000 (14:30 +0000)
committerTristan Gingold <gingold@gcc.gnu.org>
Wed, 20 Apr 2011 14:30:58 +0000 (14:30 +0000)
2011-04-20  Tristan Gingold  <gingold@adacore.com>

* config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.

From-SVN: r172770

gcc/ChangeLog
gcc/config/alpha/vms.h

index ca18ffa018c77643c5c54fa252f954f99cfeab09..e5de657c677b471ebdcf217c09a130417deae5d0 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-20  Tristan Gingold  <gingold@adacore.com>
+
+       * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
+
 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
 
        PR target/18145
index 41a2cde852646dc67e62599a00f1abf00ab36235..4d1d34b7939b28d963afea4ef4f27dbb4da940b8 100644 (file)
@@ -329,11 +329,16 @@ do {                                                \
     }                                               \
 } while (0)
 
+#undef LINK_SPEC
+#if HAVE_GNU_LD
+/* GNU-ld built-in linker script already handles the dwarf2 debug sections.  */
+#define LINK_SPEC "%{shared} %{v}"
+#else
 /* Link with vms-dwarf2.o if -g (except -g0). This causes the
    VMS link to pull all the dwarf2 debug sections together.  */
-#undef LINK_SPEC
 #define LINK_SPEC "%{g:-g vms-dwarf2.o%s} %{g0} %{g1:-g1 vms-dwarf2.o%s} \
 %{g2:-g2 vms-dwarf2.o%s} %{g3:-g3 vms-dwarf2.o%s} %{shared} %{v} %{map}"
+#endif
 
 #undef STARTFILE_SPEC
 #define STARTFILE_SPEC \