Need to stop GCC reordering functions
Newer GCC will re-order functions to allow the link-edit to better position them based on their expected call frequency.
Mostly, this is something we ignore and won't be a problem, but since kernel objects are relocatable objects, the sub-section of '.text' remain in the output, and may cause problems.
We should just not do it.
Updated by Electric Monk about 2 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit b6c711cc370ad66a5c9391c71936f34bb8616e93 Author: Richard Lowe <email@example.com> Date: 2018-11-04T19:25:51.000Z 9939 Need to stop GCC reordering functions Reviewed by: John Levon <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>