amd64: tweak the read_frequently section
1. align to 128 bytes to avoid possible waste from the preceeding section 2. sort entries by alignment SORT_BY_ALIGNMENT, plugging the holes (most entries are one byte in size, but they got interleaved with bigger ones) Interestingly I was looking for a feature of the sort earlier and failed to find it. It turns out the script was already utilizing sorting in other places, so shame on me. Thanks for Travis Geiselbrecht for pointing me at the feature.
This commit is contained in:
parent
b71a5db306
commit
10c51654ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333784
@ -146,10 +146,10 @@ SECTIONS
|
||||
.got : { *(.got) }
|
||||
. = DATA_SEGMENT_RELRO_END (24, .);
|
||||
.got.plt : { *(.got.plt) }
|
||||
. = ALIGN(64);
|
||||
. = ALIGN(128);
|
||||
.data.read_frequently :
|
||||
{
|
||||
*(.data.read_frequently)
|
||||
*(SORT_BY_ALIGNMENT(.data.read_frequently))
|
||||
}
|
||||
.data.read_mostly :
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user