Gentoo Archives: gentoo-dev

From: Ryan Hill <dirtyepic@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: LDFLAGS=-Wl,--hash-style=gnu
Date: Wed, 16 Jul 2008 02:28:48
Message-Id: 20080715202833.4c784c11@halo.dirtyepic.sk.ca
In Reply to: Re: [gentoo-dev] Re: LDFLAGS=-Wl,--hash-style=gnu by Doug Goldstein
1 On Tue, 15 Jul 2008 22:09:36 -0400
2 Doug Goldstein <cardoe@g.o> wrote:
3
4 > Ryan Hill wrote:
5 > > On Tue, 15 Jul 2008 21:39:00 +0200
6 > > Fabian Groffen <grobian@g.o> wrote:
7 > >
8 > >> On 15-07-2008 15:32:32 -0400, Doug Goldstein wrote:
9 > >>> all,
10 > >>>
11 > >>> I'm at the point that -Wl,-O1 appears to be successful. It's time
12 > >>> to toss on -Wl,--hash-style=gnu. The issue is that we need glibc
13 > >>> 2.5 or higher and not mips. So one solution is to put the
14 > >>> following:
15 > >>>
16 > >>> default/linux: LDFLAGS="-Wl,-O1,--hash-style=gnu"
17 > >>> default/linux/mips: LDFLAGS="-Wl,-O1"
18 > >>>
19 > >>> However, this means we'll have to put a has_version check in
20 > >>> profile.bashrc of default/linux, which seems a bit cludgy..
21 > >>>
22 > >>> Any suggestions? Comments?
23 > >
24 > > Also >sys-devel/binutils-2.17.
25 > >
26 > >> I'm just wondering... unless it has changed since last time I
27 > >> installed Gentoo Linux, but isn't the installation manual on
28 > >> purpose conservative with CFLAGS? make.conf.example also does not
29 > >> much more than "-march -O2 -pipe". -O1 to the linker feels
30 > >> conservative to me. Still, do we really need to go any further?
31 > >> Why not make additional pointers to possible values for LDFLAGS
32 > >> like we do for C(XX)FLAGS in the installation manual?
33 > >
34 > > +1.
35 > >
36 > > The default is already to generate a GNU style hash when available.
37 > > I really don't know why we need to screw with it further.
38 > >
39 > >
40 >
41 > It's actually not. In Gentoo we patch this to use 'both' as the
42 > default.
43
44 Yes, which generates a GNU style hash (along with a SysV one). True?
45 If both are available and the linker understands .gnu.hash, it uses
46 it. Unless having both is detrimental due to the added size (i honestly
47 don't know), this seems the best option to me.
48
49
50 --
51 gcc-porting, by design, by neglect
52 treecleaner, for a fact or just for effect
53 wxwidgets @ gentoo EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Re: LDFLAGS=-Wl,--hash-style=gnu Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com>