From 955c8d5c35908a4307bc17ecfb8f7b471d806554 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 12 Mar 2019 16:46:29 -0400 Subject: midipix (musl-pe) targets: revise crtbegin & crtend object linking specs. --- libc/cbb-musl-pe.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libc/cbb-musl-pe.h b/libc/cbb-musl-pe.h index 213ea42e5..f84ccf17f 100644 --- a/libc/cbb-musl-pe.h +++ b/libc/cbb-musl-pe.h @@ -91,12 +91,10 @@ extern "C" { "%{!shared:%{!mldso:%{!mvrfs:%{!midata:" \ "%R/lib/%{static:S}crtldso.o}}}} " \ "%{shared:%R/lib/crte.o} " \ - "%{static:crtbeginT.o%s;" \ - "shared|pie:crtbeginS.o%s;" \ - ":crtbegin.o%s} " + "crtbegin.o%s " #undef ENDFILE_SPEC -#define ENDFILE_SPEC "%{shared|pie:crtendS.o%s;:crtend.o%s} " \ +#define ENDFILE_SPEC "crtend.o%s " \ "%R/lib/crtn.o " LIB_SPEC #undef LINK_GCC_C_SEQUENCE_SPEC -- cgit v1.2.3