Gentoo Archives: gentoo-dev

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