summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-01-08 06:02:35 -0500
committermidipix <writeonce@midipix.org>2019-01-09 22:43:17 -0500
commitddbccbc6b51002739c3b61ff23ec13a758bd7c30 (patch)
treef5123034850b8c22d03b74be1ff7fe986a0e39ef
parent6eaa6b836e9d955d3b528caafaf1233b1b0f83e2 (diff)
downloadmmglue-ddbccbc6b51002739c3b61ff23ec13a758bd7c30.tar.bz2
mmglue-ddbccbc6b51002739c3b61ff23ec13a758bd7c30.tar.xz
mmglue: libc.so: link in crtn.o, needed for _pei_runtime_relocator.
-rw-r--r--project/arch.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/project/arch.mk b/project/arch.mk
index 7661734..c39b137 100644
--- a/project/arch.mk
+++ b/project/arch.mk
@@ -2,6 +2,8 @@ ifeq ($(OS),midipix)
src/env/__libc_start_main.lo: CFLAGS_SHARED += -USHARED
+SHARED_OBJS += crt/$(ARCH)/crtn.o
+
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_dlstart
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__syscall_vtbl
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__ldso_vtbl