aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/csky/csky-elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/csky/csky-elf.h')
-rw-r--r--gcc/config/csky/csky-elf.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/config/csky/csky-elf.h b/gcc/config/csky/csky-elf.h
index 15a0e73..a79d757 100644
--- a/gcc/config/csky/csky-elf.h
+++ b/gcc/config/csky/csky-elf.h
@@ -70,8 +70,14 @@
%{EL:-EL} -X"
#undef LIB_SPEC
-#define LIB_SPEC \
- "%{pthread:-lpthread} -lc %{mccrt:-lcc-rt}"
+#define LIB_SPEC "\
+%{pthread:-lpthread} \
+--start-group \
+-lc \
+%{msim:-lsemi}%{!msim:-lnosys} \
+--end-group \
+%{mccrt:-lcc-rt} \
+"
/* FIXME add this to LIB_SPEC when need */
/* %{!shared:%{profile:-lc_p}%{!profile:-lc}}" */