X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=qJBSdSfE+Zmkx2ZM01kAKSRzp8MqTV+muObRCOd1KR8=; b=R6wwPTeNWqv216UW3KAY+qgRFEUU1BqKIp1cjeo+BJe2C133DaZwPJotQA+RD0IKBf q/sUdX22TCQQHcdzCOr2SOeZR1naQe7auJFY7u32hOraAW5Hu+t3rwaSL0mmiih8S/3E v3FuGQLjBNmv6OHW3tV7FTaOGF0FXSzuRATZJapGZG9v2Q+bojkW1/WavRkGcP0gxn7X RAXbJmhX/l/8kGd60TGgptXbRa27siOonoRyfo9GviZX82Qq0x9nGWd2bSQYmdQJbh7U CyJvRd/3EMLhalp5xSPBGM/XxmGZDKWfaJp43Ycx7v5XMyZMFL3WsohOo0I5aEip8WVn ijuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=qJBSdSfE+Zmkx2ZM01kAKSRzp8MqTV+muObRCOd1KR8=; b=XTz/herRYsqxktaUAoKizzB7kNEKaQXdEPJZuVGqiA/5g0roRz1g+A0kRtqqy1ei2y 0LGQsacbrg36GonUP367qvmRsiF8oecoH0jQNrLmOUx8MmcHMiJvVO1wOPIdl+yqj0Cx mjTceXl2x4cVTWdRiqcptuhDqcJGmr1QMJhiiaPMQNx4f+Wn13QDsXfde8Un6n6rxuH1 /bwkHulisNzC+4EnY/dc/N4VA/YKwCwrZB4JgET5RthSVumHqjL4+nFoXoAfMp7xZUcx KEydo/0cz1wzBsBXu08MiIweMn3UKaN8unVcnE5b4GVWvZauQ4Jdh6DQWDB00Aveku0q oEiA== X-Gm-Message-State: AEkoouufuaSWSq3FikQ9O9B8aC3NlaLwmPNjvAZFKyXc2Dc7OiCycWYZtQQk+ugesN0Kp+EOCEmvwuQMzHyq8w== X-Received: by 10.36.64.151 with SMTP id n145mr2292716ita.10.1469165127981; Thu, 21 Jul 2016 22:25:27 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" Date: Fri, 22 Jul 2016 08:25:27 +0300 Message-ID: Subject: Re: LD from binutils 2.26 crashes when -ffunction-sections + -Wl,--gc-sections is used but only under DOS To: djgpp AT delorie DOT com Content-Type: text/plain; charset=UTF-8 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 On 7/21/16, RayeR (glaux AT centrum DOT cz) [via djgpp AT delorie DOT com] wrote: > I usually run DJGPP from WinXP on my main PC so it took me some time to hit > this bug. I compiled one of my project under DOS where I use > -ffunction-sections + -Wl,--gc-sections options in Makefile to reduce size > of binary trashing unused code and after compiling all objects linker has > crashed: > > gcc -O2 -Wall -Wstrict-prototypes -ffunction-sections -o SMB.EXE unisysio.o > pc > i.o ide.o smart.o isadev.o smbus.o smbdev.o spd.o smb.o -Wl,--gc-sections > Exiting due to signal SIGSEGV FWIW I tried those flags in my uhexen2 project and my cross-ld (2.26.0.20160612) seg'ed too on linux.