summaryrefslogtreecommitdiff
path: root/gcc/config/cris
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-17 01:49:50 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-17 01:49:50 +0000
commit8d26615a28477c507cbaba72c7fa80a4e889e4e9 (patch)
treeca1ceb75c109038c3cc96e7ef2619aea1d551d5c /gcc/config/cris
parent2ca6bbadb3cc226d49dd5280127d6de916d1b35b (diff)
downloadgcc-8d26615a28477c507cbaba72c7fa80a4e889e4e9.tar.gz
* config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
--gc-sections if -r. * config/cris/cris.h: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55507 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/cris')
-rw-r--r--gcc/config/cris/cris.h2
-rw-r--r--gcc/config/cris/linux.h2
2 files changed, 2 insertions, 2 deletions
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 */