aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRalf Corsepius <corsepiu@faw.uni-ulm.de>2004-03-17 17:29:09 +0000
committerJoel Sherrill <joel@gcc.gnu.org>2004-03-17 17:29:09 +0000
commitd3daf7bbb28baa580689b8a1f5fe5b166e4f001a (patch)
tree102a093fd71b69667f7b44fb6040c4e56a156210 /gcc
parentbb6df2725a4bb49fbbf4f9a7e92edee16dd1eaea (diff)
downloadgcc-d3daf7bbb28baa580689b8a1f5fe5b166e4f001a.zip
gcc-d3daf7bbb28baa580689b8a1f5fe5b166e4f001a.tar.gz
gcc-d3daf7bbb28baa580689b8a1f5fe5b166e4f001a.tar.bz2
re PR target/14577 (Switching sh-rtems to ELF)
2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de> PR target/14577 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff. From-SVN: r79590
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rtems.h14
2 files changed, 18 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 589147c..c9b1603 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ PR target/14620
+ * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
+
2004-03-17 Jakub Jelinek <jakub@redhat.com>
* config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
diff --git a/gcc/config/rtems.h b/gcc/config/rtems.h
index 9a284c5..2656ff7 100644
--- a/gcc/config/rtems.h
+++ b/gcc/config/rtems.h
@@ -1,5 +1,5 @@
/* Configuration common to all targets running RTEMS.
- Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc.
This file is part of GCC.
@@ -35,3 +35,15 @@ Boston, MA 02111-1307, USA. */
#undef ENDFILE_SPEC
#define ENDFILE_SPEC ""
+
+/*
+ * Some targets do not set up LIB_SPECS, override it, here.
+ */
+#define STD_LIB_SPEC "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}"
+
+#undef LIB_SPEC
+#define LIB_SPEC "%{!qrtems: " STD_LIB_SPEC "} " \
+"%{!nostdlib: %{qrtems: --start-group \
+ %{!qrtems_debug: -lrtemsbsp -lrtemscpu} \
+ %{qrtems_debug: -lrtemsbsp_g -lrtemscpu_g} \
+ -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}"