[patch] Ignore relocations from .eh_frame for gc
Rafael Espíndola
rafael.espindola@gmail.com
Tue Apr 21 19:57:00 GMT 2015
Looking at a synthetic testcase I noticed that gold will record
relocations from .eh_frame during gc. This doesn't change the output
as .eh_frame never goes to the worklist, but it does slows gold down a
bit.
The attached patch changes the gc code to ignore .eh_frame. Not sure
if it is worth it the special case. If it is, is this the correct way
to detect .eh_frame?
Cheers,
Rafael
2015-04-21 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
* gc.h (gc_process_relocs): Ignore .eh_frame sections.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 364 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150421/8c4e219e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.log
Type: text/x-log
Size: 22768 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150421/8c4e219e/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: master.log
Type: text/x-log
Size: 22769 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150421/8c4e219e/attachment-0002.bin>
More information about the Binutils
mailing list