Bug #9939
Need to stop GCC reordering functions
Start date:
2018-10-29
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
Description
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
git commit b6c711cc370ad66a5c9391c71936f34bb8616e93
commit b6c711cc370ad66a5c9391c71936f34bb8616e93 Author: Richard Lowe <richlowe@richlowe.net> Date: 2018-11-04T19:25:51.000Z 9939 Need to stop GCC reordering functions Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Dan McDonald <danmcd@joyent.com>