Re: [PATCH 2/5] kbuild: allow archs to select build for link dead code/data elimination
From: Andi Kleen <hidden>
Date: 2016-08-09 03:16:07
Also in:
linux-arch, linux-kbuild
From: Andi Kleen <hidden>
Date: 2016-08-09 03:16:07
Also in:
linux-arch, linux-kbuild
I don't understand what led Andi Kleen to also move .text.hot and .text.unlikely together with .text [2], but this may have been a related issue.
The goal was just to move .hot and .unlikely all together, so that they are clustered and use the minimum amount of cache. On x86 doesn't matter where they are exactly, as long as each is together. If they are not explicitely listed then the linker interleaves them with the normal text, which defeats the purpose. -Andi