Gentoo Archives: gentoo-dev

From: Ryan Hill <dirtyepic@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common"
Date: Wed, 25 Jun 2008 04:17:13
Message-Id: 20080624221638.448292e7@halo.dirtyepic.sk.ca
In Reply to: Re: [gentoo-dev] Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common" by Fabian Groffen
1 On Tue, 24 Jun 2008 14:17:48 +0200
2 Fabian Groffen <grobian@g.o> wrote:
3
4 > On 24-06-2008 14:15:10 +0200, Arfrever Frehtes Taifersar Arahesis
5 > wrote:
6 > > I would like to suggest that default LDFLAGS in Gentoo contain the
7 > > following flags: "-Wl,-O1,--hash-style=gnu,--sort-common".
8 > >
9 > > -O1 enables some basic optimizations.
10 > > --hash-style=gnu causes that ld creates only new GNU-style hash
11 > > tables. --sort-common causes that ld sorts the common symbols by
12 > > size when it places them in the appropriate output sections.
13 > >
14 > > These options don't cause any problems, so they should be less
15 > > controversial than --as-needed.
16 > > (These options don't conflict with --as-needed, so --as-needed can
17 > > be still added to default LDFLAGS, but this thread isn't about
18 > > --as-needed.)
19 >
20 > as long as it doesn't go in /base, but in the linux/freebsd profiles
21 > instead, it's fine with me.
22
23 Ditto. mips doesn't have support for .gnu.hash.
24
25 Currently --hash-style=both is set in the binutils patchset, not
26 the profiles so it's kind of a global setting. Can the profiles
27 override it?
28
29 --
30 gcc-porting, by design, by neglect
31 treecleaner, for a fact or just for effect
32 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: Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common" Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com>