delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2016/07/21/18:30:10

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 10.31.92.20 with SMTP id q20mr836798vkb.4.1469139009874;
Thu, 21 Jul 2016 15:10:09 -0700 (PDT)
X-Received: by 10.157.29.72 with SMTP id m66mr67258otm.20.1469139009835; Thu,
21 Jul 2016 15:10:09 -0700 (PDT)
Newsgroups: comp.os.msdos.djgpp
Date: Thu, 21 Jul 2016 15:10:09 -0700 (PDT)
In-Reply-To: <e5d46af2-36fb-46af-af04-805ce2f8b6c3@googlegroups.com>
Complaints-To: groups-abuse AT google DOT com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2602:306:8371:4220:90e5:3f7d:a264:2d34;
posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
NNTP-Posting-Host: 2602:306:8371:4220:90e5:3f7d:a264:2d34
References: <e5d46af2-36fb-46af-af04-805ce2f8b6c3 AT googlegroups DOT com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2b1ab6d9-c1f5-4976-866c-c17f9f5760a0@googlegroups.com>
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]" <djgpp AT delorie DOT com>
Injection-Date: Thu, 21 Jul 2016 22:10:09 +0000
Bytes: 2038
Lines: 23
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

Hi,

On Thursday, July 21, 2016 at 12:55:06 PM UTC-5, RayeR 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
> ...
> and produced EXE was empty (zero Bytes)

Sounds like it worked too well!  ;-)

No, seriously, I don't think COFF supports --gc-sections at all.

Actually, ld.info says this (but I presume they mean MS COFF, primarily):

"
Note that garbage collection for COFF and PE format targets is supported,
but the implementation is currently considered to be experimental.
"

It probably shouldn't crash, but it's probably also not really supported
for us.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019