[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/18288] gold does not handle common symbols in shared libraries
From: |
dilyan.palauzov at aegee dot org |
Subject: |
[Bug gold/18288] gold does not handle common symbols in shared libraries correctly |
Date: |
Sun, 07 Jun 2015 22:06:47 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=18288
--- Comment #24 from dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee
dot org> ---
I took the updated gold ( b8cf50755b57314), compiled opendkim -flto with both
gold and ld and compared the sizes:
471664 - bfd
475896 - gold
So gold/master still produces bigger binaries than bfd (with -Wl,-s).
Moreover, stipping (with strip/master) the bfd binary does not change the
binary, whereas stripping the gold binary, modifies the result. `readelf
--all` on both stripped and unstripped gold binary returns:
--- stripped 2015-06-07 22:04:47.058504804 +0000
+++ unstripped 2015-06-07 22:04:53.566504302 +0000
@@ -41,7 +41,7 @@
[ 8] .rela.dyn RELA 0000000000403af8 00003af8
00000000000000c0 0000000000000018 A 3 0 8
[ 9] .rela.plt RELA 0000000000403bb8 00003bb8
- 0000000000002010 0000000000000018 AI 3 22 8
+ 0000000000002010 0000000000000018 AI 3 11 8
[10] .init PROGBITS 0000000000405bc8 00005bc8
0000000000000024 0000000000000000 AX 0 0 4
[11] .plt PROGBITS 0000000000405bf0 00005bf0
@@ -72,7 +72,7 @@
0000000000000fac 0000000000000000 WA 0 0 64
[24] .tm_clone_table PROGBITS 0000000000474a70 00073a70
0000000000000000 0000000000000000 WA 0 0 8
- [25] .bss NOBITS 0000000000474a80 00073a70
+ [25] .bss NOBITS 0000000000474a80 00073a80
0000000000010aa8 0000000000000000 WA 0 0 64
[26] .comment PROGBITS 0000000000000000 00073a70
0000000000000023 0000000000000001 MS 0 0 1
--
You are receiving this mail because:
You are on the CC list for the bug.