This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: openssh static size. and -ffunction-sections
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-apps at cygwin dot com
- Date: Tue, 20 Nov 2001 22:58:09 -0500
- Subject: Re: openssh static size. and -ffunction-sections
- References: <097201c17240$26c4ce30$0200a8c0@lifelesswks>
- Reply-to: cygwin-apps at cygwin dot com
On Wed, Nov 21, 2001 at 02:53:59PM +1100, Robert Collins wrote:
>Just a thought: was the openssl static libraries built
>with -ffunction-sections?
>
>If not, then that may be why the openssh static binaries where so big
>and so I think that -ffunction-sections should be mandatory for
>packagers, unless the libraries sources is one-function-per-file
>structured (which achieves the same thing).
Does the linker do the "right thing" when functions are in their
own sections? I didn't know that. I thought there was some other
linker switch available for accomplishing that.
I know that Microsoft's linker has a switch for this and I thought
that ld had something added relatively recently.
cgf