aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-04-20 14:30:58 +0000
committerTristan Gingold <gingold@gcc.gnu.org>2011-04-20 14:30:58 +0000
commitb501ce4ebc0dc4489c1326170ef6e562c1ce1b9c (patch)
treec42604d39f6ed524a5b6bec93e3fc93891d2edcc /gcc/config
parent516edfdd8a1bffdfe73a09f4813c50c6a22cba39 (diff)
downloadgcc-b501ce4ebc0dc4489c1326170ef6e562c1ce1b9c.zip
gcc-b501ce4ebc0dc4489c1326170ef6e562c1ce1b9c.tar.gz
gcc-b501ce4ebc0dc4489c1326170ef6e562c1ce1b9c.tar.bz2
vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
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
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/alpha/vms.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/alpha/vms.h b/gcc/config/alpha/vms.h
index 41a2cde..4d1d34b 100644
--- a/gcc/config/alpha/vms.h
+++ b/gcc/config/alpha/vms.h
@@ -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 \