[gold][patch] Don't put symbols dropped by the plugin in the symbol tables
Rafael Avila de Espindola
rafael.espindola@gmail.com
Thu Feb 17 20:13:00 GMT 2011
The attached patch avoids putting symbols in the symbol tables if there
are only found in IL files. This is important for when LTO manages to
drop some symbols completely.
When linking libxul it reduces the final .so from 39339456 bytes to
34450128 bytes. And yes, firefox still works :-)
2010-02-17 Rafael Ãvila de EspÃndola <respindola@mozilla.com>
* symtab.cc (Symbol::should_add_dynsym_entry) Return false for
plugin only symbols.
(Symbol_table::sized_finalize_symbol) Mark symbol only present
in plugin files as not needed in the symbol table.
Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: symtab.patch
Type: text/x-patch
Size: 1044 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20110217/ffe3b439/attachment.bin>
More information about the Binutils
mailing list