[PATCH 2/5] kbuild: allow archs to select build for link dead code/data elimination

Andi Kleen ak at linux.intel.com
Tue Aug 9 13:16:05 AEST 2016


> 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


More information about the Linuxppc-dev mailing list