summaryrefslogtreecommitdiff
path: root/gcc/config/cris
diff options
context:
space:
mode:
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 */