Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: Gentoo Development <gentoo-dev@g.o>
From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@...>
Subject: Re: Re: LDFLAGS=-Wl,--hash-style=gnu
Date: Wed, 16 Jul 2008 18:37:41 +0200
2008-07-16 04:28:33 Ryan Hill napisaƂ(a):
> On Tue, 15 Jul 2008 22:09:36 -0400
> Doug Goldstein <cardoe@g.o> wrote:
> 
> > Ryan Hill wrote:
> > > On Tue, 15 Jul 2008 21:39:00 +0200
> > > Fabian Groffen <grobian@g.o> wrote:
> > > 
> > >> On 15-07-2008 15:32:32 -0400, Doug Goldstein wrote:
> > >>> all,
> > >>>
> > >>> I'm at the point that -Wl,-O1 appears to be successful. It's time
> > >>> to toss on -Wl,--hash-style=gnu. The issue is that we need glibc
> > >>> 2.5 or higher and not mips. So one solution is to put the
> > >>> following:
> > >>>
> > >>> default/linux: LDFLAGS="-Wl,-O1,--hash-style=gnu"
> > >>> default/linux/mips: LDFLAGS="-Wl,-O1"
> > >>>
> > >>> However, this means we'll have to put a has_version check in  
> > >>> profile.bashrc of default/linux, which seems a bit cludgy..
> > >>>
> > >>> Any suggestions? Comments?
> > > 
> > > Also >sys-devel/binutils-2.17.
> > > 
> > >> I'm just wondering... unless it has changed since last time I
> > >> installed Gentoo Linux, but isn't the installation manual on
> > >> purpose conservative with CFLAGS?  make.conf.example also does not
> > >> much more than "-march -O2 -pipe".  -O1 to the linker feels
> > >> conservative to me.  Still, do we really need to go any further?
> > >> Why not make additional pointers to possible values for LDFLAGS
> > >> like we do for C(XX)FLAGS in the installation manual?
> > > 
> > > +1.
> > > 
> > > The default is already to generate a GNU style hash when available.
> > > I really don't know why we need to screw with it further.
> > > 
> > > 
> > 
> > It's actually not. In Gentoo we patch this to use 'both' as the
> > default.
> 
> Yes, which generates a GNU style hash (along with a SysV one).  True?
> If both are available and the linker understands .gnu.hash, it uses
> it.  Unless having both is detrimental due to the added size (i honestly
> don't know), this seems the best option to me.

.hash sections slightly increasize size of executables/libraries.
-Wl,--hash-style=gnu is a completely safe flag (on architectures which support
.gnu.hash), so having it in default LDFLAGS wouldn't cause any problems.
Having 2 or 3 flags in LDFLAGS isn't too screwing.

Using -Wl,--hash-style=gnu would also allow for easier detection of packages
which ignore LDFLAGS.

-- 
Arfrever Frehtes Taifersar Arahesis
Attachment:
signature.asc (This is a digitally signed message part.)
References:
LDFLAGS=-Wl,--hash-style=gnu
-- Doug Goldstein
Re: Re: LDFLAGS=-Wl,--hash-style=gnu
-- Doug Goldstein
Re: LDFLAGS=-Wl,--hash-style=gnu
-- Ryan Hill
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: LDFLAGS=-Wl,--hash-style=gnu
Next by thread:
Re: Re: LDFLAGS=-Wl,--hash-style=gnu
Previous by date:
Re: LDFLAGS=-Wl,--hash-style=gnu
Next by date:
Re: LDFLAGS=-Wl,--hash-style=gnu


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.