summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/cris/cris.h2
-rw-r--r--gcc/config/cris/linux.h2
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a851ef292be..31154660c30 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2002-07-16 Hans-Peter Nilsson <hp@axis.com>
+
+ * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
+ --gc-sections if -r.
+ * config/cris/cris.h: Ditto.
+
2002-07-16 Rodney Brown <rbrown64@csc.com.au>
* config/i386/i386.c (ix86_expand_int_movcc): In the case where
diff --git a/gcc/config/cris/cris.h b/gcc/config/cris/cris.h
index 6228c313000..496a533a954 100644
--- a/gcc/config/cris/cris.h
+++ b/gcc/config/cris/cris.h
@@ -211,7 +211,7 @@ extern const char *cris_elinux_stacksize_str;
#define CRIS_LINK_SUBTARGET_SPEC \
"-mcriself\
%{sim2:%{!T*:-Tdata 0x4000000 -Tbss 0x8000000}}\
- %{O2|O3: --gc-sections}"
+ %{!r:%{O2|O3: --gc-sections}}"
/* Which library to get. The only difference from the default is to get
libsc.a if -sim is given to the driver. Repeat -lc -lsysX
diff --git a/gcc/config/cris/linux.h b/gcc/config/cris/linux.h
index 81752454317..546f38101b9 100644
--- a/gcc/config/cris/linux.h
+++ b/gcc/config/cris/linux.h
@@ -96,7 +96,7 @@ Boston, MA 02111-1307, USA. */
%{shared} %{static}\
%{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
%{!shared:%{!static:%{rdynamic:-export-dynamic}}}\
- %{O2|O3: --gc-sections}"
+ %{!r:%{O2|O3: --gc-sections}}"
/* Node: Sections */