Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158024 - enable GNU_HASH by default in sys-devel/binutils
Summary: enable GNU_HASH by default in sys-devel/binutils
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Lowest enhancement
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-13 06:29 UTC by Alexander Zubkov
Modified: 2007-01-23 08:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
binutils-gnuhash.patch (binutils-gnuhash.patch,454 bytes, patch)
2006-12-13 06:31 UTC, Alexander Zubkov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Zubkov 2006-12-13 06:29:55 UTC
I'm trying to rebuild my world with GNU_HASH info enabled in libraries/executables. I've installed sys-devel/binutils-2.17.50.0.8, added to make.conf:
CFLAGS="... -Wl,-O1,--hash-style=both"

Then I figured, that some packages do not use CFLAGS when making shared from .o, for example. I modified make.conf:
LDFLAGS="-Wl,-O1,--hash-style=both"
CFLAGS="... ${LDFLAGS}"

But I found that some packages (iptables for ex.) replaces LDFLAGS and used EXT_LDFLAGS. I've added EXT_LDFLAGS.

Finally, I find out, that some ebuilds cuts CFLAGS using flag-o-matic.eclass. At this point I decided to patch binutils to use "--hash-style=both" by default.

I think that will be good to use it for all, because it doesn't breaks anything - just making files little bigger. But it will be easier to use GNU_HASH in gentoo with it.
Comment 1 Alexander Zubkov 2006-12-13 06:31:46 UTC
Created attachment 103946 [details, diff]
binutils-gnuhash.patch

Proposed patch. Enables GNU_HASH by default.
Comment 2 SpanKY gentoo-dev 2006-12-13 09:56:32 UTC
no thanks
Comment 3 SpanKY gentoo-dev 2006-12-20 08:29:55 UTC
i've thought about this some more and i'll add it for the next binutils versions
Comment 4 SpanKY gentoo-dev 2007-01-23 08:35:36 UTC
part of 2.17.50.0.10 now, cheers