X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 10.129.46.145 with SMTP id u139mr3412151ywu.11.1469196707424; Fri, 22 Jul 2016 07:11:47 -0700 (PDT) X-Received: by 10.157.58.116 with SMTP id j107mr238638otc.13.1469196707377; Fri, 22 Jul 2016 07:11:47 -0700 (PDT) Newsgroups: comp.os.msdos.djgpp Date: Fri, 22 Jul 2016 07:11:47 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse AT google DOT com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2602:306:8371:4220:a4a2:8963:72da:562a; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO NNTP-Posting-Host: 2602:306:8371:4220:a4a2:8963:72da:562a References: <579167F3 DOT 4060700 AT gmx DOT de> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: LD from binutils 2.26 crashes when -ffunction-sections + -Wl,--gc-sections is used but only under DOS From: "rugxulo AT gmail DOT com [via djgpp AT delorie DOT com]" Injection-Date: Fri, 22 Jul 2016 14:11:47 +0000 Content-Type: text/plain; charset=UTF-8 Bytes: 2654 Lines: 32 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Hi, On Thursday, July 21, 2016 at 8:34:38 PM UTC-5, rug DOT DOT DOT AT gmail DOT com wrote: > > In this newsgroup, on Feb. 2 (under Subject: "Re: ANNOUNCE: Update of > DJGPP port of gcc-5.3.0"), I had also said this: > > " > Well, just for comparison, I tried older GCC 4.9.3 and BinUtils 2.26: > It builds and works okay, but only if you remove the unsupported > "-Wl,--gc-sections" in e3d.gpr (which otherwise crashes the linker). > " > > But in private email (June 22) to Gautier: > > " > I have no idea when or why this was broken, but I can't reproduce > this with latest BNU226BR3.ZIP (r3, March 5, 2016) from > /current/v2gnu/ , so my warning is probably (now) irrelevant. Just > FYI. > " > > So, indeed, I can rebuild "Engine 3D" with no crashes (in raw FreeDOS) > with latest DJGPP (either 4.9.3 or 6.1.0). Indeed, it has been correctly noted that the linker is crashing if trying to use "--gc-sections". I was mistaken in implying otherwise. So yes, even latest r3 has this issue. The problem was that e3d.gpr didn't use "--gc-sections" in (default) "Debug" setup. So it wasn't manifested unless using "-XBuild_Mode=Fast" (or Small). So I wasn't doing that, wasn't even using his MAKE_XX.BAT (etc.) files, just manually running gnatmake myself (without -Xblah=blah).