delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/11/20/23:00:22

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Message-ID: <098801c17241$04acd1c0$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: <cygwin-apps AT cygwin DOT com>
References: <097201c17240$26c4ce30$0200a8c0 AT lifelesswks> <20011121035809 DOT GF16959 AT redhat DOT com>
Subject: Re: openssh static size. and -ffunction-sections
Date: Wed, 21 Nov 2001 15:00:11 +1100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-OriginalArrivalTime: 21 Nov 2001 04:00:06.0930 (UTC) FILETIME=[01A7CF20:01C17241]

---- Original Message -----
From: "Christopher Faylor" <cgf AT redhat DOT com>
To: <cygwin-apps AT cygwin DOT 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

- Raw text -


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