[gold commit] PR gold/18010: Fix bug when optimizing string pools of aligned strings

Cary Coutant ccoutant@gmail.com
Sun Mar 22 04:12:00 GMT 2015


Tail optimization of string pools (enabled when linker is run with -O2
or greater) should not be done when the section alignment is greater
than the size of the characters in the strings; otherwise, unaligned
strings may result.

I've committed this patch to disable tail optimization when the
alignment is larger than the character size.

-cary


gold/
        PR gold/18010
        * stringpool.cc (Stringpool_template): Don't optimize if section
        alignment is greater than sizeof(char).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: merge-aligned.patch
Type: application/octet-stream
Size: 1038 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150322/565fd554/attachment.obj>


More information about the Binutils mailing list