1 |
2010/8/10 Brian Harring <ferringb@×××××.com> |
2 |
|
3 |
> On Mon, Aug 09, 2010 at 07:05:11PM -0400, Mike Frysinger wrote: |
4 |
> > On Mon, Aug 9, 2010 at 7:03 PM, Markos Chandras wrote: |
5 |
> > > On Sat, Aug 07, 2010 at 10:16:24PM -0400, Mike Frysinger wrote: |
6 |
> > >> obviously you only mean linux x86/amd64 dev profiles. i dont have a |
7 |
> strong |
8 |
> > >> opinion on that small subset in either direction. |
9 |
> > > |
10 |
> > > So do you agree to make this linker option default to linux x86/amd64 |
11 |
> dev/ |
12 |
> > > profiles? |
13 |
> > |
14 |
> > add them or dont add them, "i dont have a [...] opinion [...] in |
15 |
> > either direction". if put to a vote, i'd abstain. |
16 |
> |
17 |
> Possibly a stupid question, but any reason we've not looked at |
18 |
> injecting something that has lower actual affect but can still be used |
19 |
> for a canary? I'm thinking of --build-id specifically... |
20 |
> |
21 |
> ~brian |
22 |
> |
23 |
|
24 |
I don't know how --hash-style=gnu is used to check for LDFLAGS, so this may |
25 |
be OT. |
26 |
|
27 |
On my personal and _breakable_ desktop I do use |
28 |
LDFLAGS="${LDFLAGS} -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed |
29 |
-Wl,--sort-common -Wl,--build-id" |
30 |
in make.conf. |
31 |
|
32 |
Would this two liners tell me which package who install binaries in /usr/bin |
33 |
does not respect ldflags? |
34 |
|
35 |
# for i in /usr/bin/* ; do eu-unstrip -n -e $i ; done &> build-id.txt |
36 |
# qfile $(grep '0x[0-9]*+0x[0-9]* - ' build-id.txt | awk '{ print $3 }') |
37 |
|
38 |
On a side note, I've noticed that build-id change at every re-compilation of |
39 |
the package, even if nothing changed in the system, since it's supposed to |
40 |
be a "160-bit SHA1 hash on the normative parts of the output contents" |
41 |
should it be the same if the package is compiled on the same system with no |
42 |
changes? |
43 |
|
44 |
Output of the two liners for this system: |
45 |
|
46 |
sys-apps/turbotail (/usr/bin/turbotail) |
47 |
app-arch/rzip (/usr/bin/runzip) |
48 |
app-arch/rzip (/usr/bin/rzip) |
49 |
dev-lang/go (/usr/bin/6a) |
50 |
dev-lang/go (/usr/bin/6cov) |
51 |
dev-lang/go (/usr/bin/6l) |
52 |
dev-lang/go (/usr/bin/6nm) |
53 |
dev-lang/xharbour (/usr/bin/pprun) |
54 |
dev-lang/xharbour (/usr/bin/hbmake) |
55 |
dev-lang/xharbour (/usr/bin/hbdict) |
56 |
dev-lang/xharbour (/usr/bin/xbscript) |
57 |
dev-lang/perl (/usr/bin/perl) |
58 |
dev-lang/perl (/usr/bin/perl5.12.1) |
59 |
dev-lang/R (/usr/bin/Rscript) |
60 |
x11-misc/xcb (/usr/bin/xcb) |
61 |
dev-libs/dietlibc (/usr/bin/dnsd) |
62 |
dev-libs/dietlibc (/usr/bin/elftrunc) |
63 |
app-text/o3read (/usr/bin/utf8tolatin1) |
64 |
app-accessibility/festival (/usr/bin/audsp) |
65 |
app-accessibility/espeak (/usr/bin/espeak) |
66 |
sys-devel/gcc (/usr/bin/x86_64-pc-linux-gnu-gcjh-4.4.4) |
67 |
sys-devel/gcc (/usr/bin/gcjh-4.4.4) |
68 |
sys-devel/llvm-gcc (/usr/bin/llvm-gcov) |
69 |
sys-devel/qconf (/usr/bin/qconf) |
70 |
www-plugins/lightspark (/usr/bin/lightspark) |