summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/cbb-musl-pe.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/cbb-musl-pe.h b/libc/cbb-musl-pe.h
index 7e5b7ba5b..1bb8a2171 100644
--- a/libc/cbb-musl-pe.h
+++ b/libc/cbb-musl-pe.h
@@ -89,7 +89,8 @@ extern "C" {
"--as-needed -lpsxscl "
#undef STARTFILE_SPEC
-#define STARTFILE_SPEC "%{!shared:%{" \
+#define STARTFILE_SPEC "%R/lib/crti.o " \
+ "%{!shared:%{" \
"mldso" \
"|mldso-absolute-path" \
"|mldso-default-path" \
@@ -107,7 +108,6 @@ extern "C" {
"%{!shared:%{mposix:%R/lib/crtposix.o}} " \
"%{!shared:%{mtty-console:%R/lib/crtdev.o}} " \
"%{shared:%R/lib/crte.o} " \
- "%R/lib/crti.o " \
"%{static:crtbeginT.o%s;" \
"shared|pie:crtbeginS.o%s;" \
":crtbegin.o%s} "