Objects with profiling information can mark symbols with .hot prefix/suffix.
With the option -z keep-text-section-prefix, all the symbols marked as hot
will be put into a separate section named as '.text.hot' (as well as cold
symbols, (.text.unlikely), .text.startup, .text.exit, .text.unliekly, etc.)
The previous version of lld does not specify ordering for these text sections
and all the sections with prefix comes after .text section. This doesn't benefit
performance in some cases and is different than the ordering of gold. (In gold,
these secctions are ordered as .text.hot, .text, .text.startup, .text.exit,
.text.unlikely)
This commit reorders the text sections by putting .text.hot before .text, in
the same order as gold (only for text sections with prefix, other section orders
are still different than gold as previous version).
The change only affects linking results when -z keep-text-section-prefix is passed.
Unit test text-section-prefix is changed accordingly.