From: Rasmus Villemoes Date: Thu, 28 Oct 2021 11:50:22 +0000 (+0200) Subject: libgcc: vxcrtstuff.c: remove ctor/dtor declarations X-Git-Tag: basepoints/gcc-13~2406 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b2885dee57e6e91b6265248f1de88fd53d61ce4;p=thirdparty%2Fgcc.git libgcc: vxcrtstuff.c: remove ctor/dtor declarations These declarations prevent the priority given in the constructor/destructor attributes from taking effect, thus emitting the function pointers in the ordinary (lowest-priority) .init_array/.fini_array sections. libgcc/ * config/vxcrtstuff.c: Remove constructor/destructor declarations. --- diff --git a/libgcc/config/vxcrtstuff.c b/libgcc/config/vxcrtstuff.c index 767b9de577da..908146d6c999 100644 --- a/libgcc/config/vxcrtstuff.c +++ b/libgcc/config/vxcrtstuff.c @@ -96,9 +96,6 @@ __attribute__((section(__LIBGCC_EH_FRAME_SECTION_NAME__), aligned(4))) #endif /* USE_INITFINI_ARRAY */ -void EH_CTOR_NAME (void); -void EH_DTOR_NAME (void); - EH_CTOR_ATTRIBUTE void EH_CTOR_NAME (void) { static struct object object;