summarylogtreecommitdiffstats
path: root/0004-Remove-libgloss.patch
blob: b7febd4e7218457b315739400d249952da9fb93e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/gcc/config/riscv/elf.h b/gcc/config/riscv/elf.h
index 9be97b866..8a0df0a37 100644
--- a/gcc/config/riscv/elf.h
+++ b/gcc/config/riscv/elf.h
@@ -22,10 +22,9 @@ along with GCC; see the file COPYING3.  If not see
 %{mno-relax:--no-relax} \
 %{shared}"
 
-/* Link against Newlib libraries, because the ELF backend assumes Newlib.
-   Handle the circular dependence between libc and libgloss. */
+/* remove the dependency of libgloss, no default libc. */
 #undef  LIB_SPEC
-#define LIB_SPEC "--start-group -lc %{!specs=nosys.specs:-lgloss} --end-group"
+#define LIB_SPEC "--start-group -lgcc -lg -lc --end-group"
 
 #undef  STARTFILE_SPEC
 #define STARTFILE_SPEC "crt0%O%s crtbegin%O%s"