This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: openssh static size. and -ffunction-sections


---- Original Message -----
From: "Christopher Faylor" <cgf@redhat.com>
To: <cygwin-apps@cygwin.com>
Sent: Wednesday, November 21, 2001 2:58 PM
Subject: Re: openssh static size. and -ffunction-sections


> 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 recall a thread recently when someone whinged about ld not grabbing
single functions, and the answer was: use -ffunction-sections because
_by design_ ld grabs whole sections at a time. Mind you I'm no expert on
this, just raising the issue... I'll shutup now.

Rob


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]