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=x7/H+yLq/klEqkK0OiQfa89p2GCkPIL0eLzMaOYpdYc=; b=KBqno1D5puVkTWRRuy+GP7uvjgIyYkEPP8hgRAIAOUxU97+qM6k0cQllPGo7qUY95y wz/H4VGkmUBIL5HmZPnkLaxMdDwKao7rbNPZ7TDdwOfBNvMK78dhRlCv1PGvd8a4TfNy 71e1XsUEgPvgLPotw1fvCGwq4t89yN1xsKJRdvhHOEIxKOlKBY8yDORn3yDU7jiYEjF+ nz6likTNDRWojBkmLjnRuM3GF3froDLYUrm0E/CfEZeZN/WPUaFw1bc0lwvN/H8hHLgT XpmQz1PskfL2z+pfhhholBkCkjcdBY/RTq30SxtBpsiXvNIlhZigMD6nBRiYbt1ppAir 3/vA== 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=x7/H+yLq/klEqkK0OiQfa89p2GCkPIL0eLzMaOYpdYc=; b=mg1MYBOLikCOoOC/8r4VCd079to+szzgRt0Ugx8hzoCyS9SgMPnnPJQnlWOA8NURQe 5DuL/MSEZ+7niA2jAe+fQRQxJOK9nvJM8Kajj6n79gWRpl/HSioW2orbiUZXynxi9+D9 nZAlp0WjwdMCdx0K7QN5GzdN2Ear51tFbG4gKIJkvKtOqVMgagJ/xgam8Z7W6d5NwDzu 7G2YiFmrd4pNMzUngS953ft/RP9+fKLTxnhfchY5aNvc69H68x+OfcfSWmymkqOw68be sVh0UIdoH7tWAHfbmbgz6S+eECPM0jxJiI3yWwCjd+E1OULl0xFv3yF/HOf9js9+DkQo 7Big== X-Gm-Message-State: AEkoouubVAazP4I6MUx/vzgLUahCcYs8miUi6rxBTDyk/UWYKp8WQNkF1k2sISFyq5tqGfRlEJQhOadAcOLGHw== X-Received: by 10.107.19.8 with SMTP id b8mr2705343ioj.9.1469165960257; Thu, 21 Jul 2016 22:39:20 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: "Louis Santillan (lpsantil AT gmail DOT com) [via djgpp AT delorie DOT com]" Date: Thu, 21 Jul 2016 22:39:19 -0700 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 IIRC, those flags are ELF object specific so this could be a binutils configuration bug. IMO, gcc/ld should fail with unsupported flag error instead. PS - Thanks for always being awesome DJ. On Thu, Jul 21, 2016 at 10:25 PM, Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com] wrote: > 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.