diff -rupN --exclude=.svn gcc-mainline-3/gcc/config/arc/arc.h gcc-mainline/gcc/config/arc/arc.h
--- gcc-mainline-3/gcc/config/arc/arc.h	2010-12-02 09:39:19.000000000 -0800
+++ gcc-mainline/gcc/config/arc/arc.h	2010-12-07 06:20:01.000000000 -0800
@@ -29,6 +29,7 @@ along with GCC; see the file COPYING3.  
 
 #undef ASM_SPEC
 #undef LINK_SPEC
+#undef LIB_SPEC
 #undef STARTFILE_SPEC
 #undef ENDFILE_SPEC
 #undef SIZE_TYPE
@@ -66,6 +67,8 @@ along with GCC; see the file COPYING3.  
 
 #define LINK_SPEC "%{v} %{EB} %{EL}"
 
+#define LIB_SPEC "-lc"
+
 #define STARTFILE_SPEC "%{!shared:crt0.o%s} crtinit.o%s"
 
 #define ENDFILE_SPEC "crtfini.o%s"
diff -rupN --exclude=.svn gcc-mainline-3/gcc/config.gcc gcc-mainline/gcc/config.gcc
--- gcc-mainline-3/gcc/config.gcc	2010-12-06 03:31:49.000000000 -0800
+++ gcc-mainline/gcc/config.gcc	2010-12-07 06:09:45.000000000 -0800
@@ -761,7 +761,7 @@ alpha*-dec-*vms*)
 	extra_options="${extra_options} vms/vms.opt"
 	;;
 arc-*-elf*)
-	tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
+	tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
 	extra_parts="crtinit.o crtfini.o"
 	;;
 arm-wrs-vxworks)
