From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5918A3858429; Fri, 15 Oct 2021 21:44:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5918A3858429 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/100486] Ada build fails for 32bit Windows Date: Fri, 15 Oct 2021 21:44:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 11.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Oct 2021 21:44:32 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100486 --- Comment #30 from Eric Botcazou --- > I have quite a few crtend.o files in the build directory. A quick glance > indicates that .text.startup is missing: >=20 > $ for f in `find ./build-i686-w64-mingw32/ -name crtend.o` ; do echo $f && > nm $f ; done > ./build-i686-w64-mingw32/gcc/crtend.o > 00000000 b .bss > 00000000 d .ctors.65535 > 00000000 d .data > 00000000 r .eh_frame > 00000000 r .rdata$zzz > 00000000 t .text > 00000000 r ___FRAME_END__ > U ___gcc_register_frame > 00000000 t _register_frame_ctor Yep, that is suspicious, this might indicate that: static void register_frame_ctor (void) __attribute__ ((constructor (0))); is not considered a static constructor. Could you replay the compilation of this file? In the top level directory,= do rm i686-w64-mingw32/libgcc/crtend.o make all-target-libgcc copy the (long) command line, go into the i686-w64-mingw32/libgcc directory= and execute it after adding -save-temps to it. You should get a small assembly file named crtend.s and I would be interested in its contents.=