From 49e286b1a48614877b448f7638d5d348a7dba9f5 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 18 Jul 2015 16:37:54 -0400 Subject: midipix start-file specification: define crti.o as the first object to be linked into both shared libraries and applications. This change reflects crti.o's newly assigned roled in mmglue as the object containing the image's internal descriptor. signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information. --- libc/cbb-musl-pe.h | 4 ++-- 1 file 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} " -- cgit v1.2.3