gcc -ffunction-sections -Wl,--gc-sections
Adam Jackson
ajax at redhat.com
Thu Mar 24 16:06:09 UTC 2011
On Thu, 2011-03-24 at 15:00 +0100, Jan Kratochvil wrote:
> Hi,
>
> just tried -ffunction-sections -Wl,--gc-sections on F15 xulrunner and got
> libxul.so 24947928 -> 23631640 (5.28% gain) and it still works.
>
> ld.gold --icf is a different optimization but that one requires gold.
>
> Are there some serious Bugs why Fedora is not using it?
What are the criteria for section gc?
For example, if I'm the X server, I have a bunch of symbols exported
from the binary that the drivers are expected to call, but that are
never called from the server itself. Does marking a function
__attribute__((visibility("default"))) mark it as used from the garbage
collector's perspective?
- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20110324/641c8984/attachment.bin
More information about the devel
mailing list