This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fw: [Mingw-users] linker question
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: binutils <binutils at sources dot redhat dot com>,Jonathan Brandmeyer <jbrandmeyer at earthlink dot net>
- Date: Wed, 08 Jan 2003 10:17:38 +0000
- Subject: Fw: [Mingw-users] linker question
- Reply-to: Danny Smith <dannysmith at users dot sourceforge dot net>
----- Original Message -----
From: "Jonathan Brandmeyer" <...>
To: <mingw-users@lists.sourceforge.net>
Sent: Monday, 6 January 2003 17:20
Subject: [Mingw-users] linker question
> The GCC manual says that using -ffunction-sections and -fdata-sections
can
> be useful for some targets whose linker can take advantage of it. Can
the
> current MinGW ld make use of it or not?
>
> Thanks,
> Jonathan Brandmeyer
>
The above was posted to mingw users list. My understanding is
that --gc-sections is not supported for pe-coff targets, but only for
elf targets. Is that correct?
I also read in gcc info files:
"Only use these options when there are significant benefits from doing
so. When you specify these options, the assembler and linker will create
larger object and executable files and will also be slower."
Also, by default, libstdc++-v3 is built with these options. If there are
no significant benefits. this needs to be changed for mingw32 and
cygwin.
Danny
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> MinGW-users mailing list
> MinGW-users@lists.sourceforge.net
>
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users