diff --git a/litex/soc/integration/builder.py b/litex/soc/integration/builder.py
index 8d5fd35e8..6fe81361e 100644
--- a/litex/soc/integration/builder.py
+++ b/litex/soc/integration/builder.py
@@ -45,7 +45,6 @@ soc_software_packages = [
# LiteX cores.
"libutils",
"libcomm",
- "libmisc",
# LiteX Ecosystem cores.
"libfatfs",
diff --git a/litex/soc/software/libmisc/exception.c b/litex/soc/software/libc/or1k/exception.c
similarity index 99%
rename from litex/soc/software/libmisc/exception.c
rename to litex/soc/software/libc/or1k/exception.c
index a0c775682..278cd6a5b 100644
--- a/litex/soc/software/libmisc/exception.c
+++ b/litex/soc/software/libc/or1k/exception.c
@@ -6,7 +6,7 @@ void isr(void);
#ifdef __or1k__
-#include
+#include
#define EXTERNAL_IRQ 0x8
diff --git a/litex/soc/software/libmisc/Makefile b/litex/soc/software/libmisc/Makefile
deleted file mode 100755
index c1eed3599..000000000
--- a/litex/soc/software/libmisc/Makefile
+++ /dev/null
@@ -1,22 +0,0 @@
-include ../include/generated/variables.mak
-include $(SOC_DIRECTORY)/software/common.mak
-
-OBJECTS = \
- exception.o
-
-all: libmisc.a
-
-libmisc.a: $(OBJECTS)
- $(AR) crs libmisc.a $(OBJECTS)
-
-# pull in dependency info for *existing* .o files
--include $(OBJECTS:.o=.d)
-
-%.o: $(LIBMISC_DIRECTORY)/%.c
- $(compile)
-
-.PHONY: all clean
-
-clean:
- $(RM) $(OBJECTS)
- $(RM) libmisc.a .*~ *~