Fix bug when optimizing string pools of aligned strings.
authorCary Coutant <ccoutant@gmail.com>
Sun, 22 Mar 2015 04:09:46 +0000 (21:09 -0700)
committerCary Coutant <ccoutant@gmail.com>
Sun, 22 Mar 2015 04:09:46 +0000 (21:09 -0700)
commit1c582fe71858efabae951c5f3ed7dccfb23fb86e
treefb63e6f7a667e5601b96a5be3f0c73c71f82f0a8
parent410da591ba7814912e11be826b20dfba9abed9f7
Fix bug when optimizing string pools of aligned strings.

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.

gold/
PR gold/18010
* stringpool.cc (Stringpool_template): Don't optimize if section
alignment is greater than sizeof(char).
gold/ChangeLog
gold/stringpool.cc
This page took 0.025305 seconds and 4 git commands to generate.