summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-07-18 16:37:54 -0400
committermidipix <writeonce@midipix.org>2015-07-18 16:37:54 -0400
commit49e286b1a48614877b448f7638d5d348a7dba9f5 (patch)
tree57fcecdfc6718533a16a3badba01873825938e52
parent1b7ea5c3a323b3306838fa39d1705007b77cbe0e (diff)
downloadcbb-gcc-4.6.4-49e286b1a48614877b448f7638d5d348a7dba9f5.tar.bz2
cbb-gcc-4.6.4-49e286b1a48614877b448f7638d5d348a7dba9f5.tar.xz
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.
-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} "