Project

General

Profile

Bug #9939

Need to stop GCC reordering functions

Added by Rich Lowe 9 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
2018-10-29
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

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.

History

#1

Updated by Electric Monk 9 months ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

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>

Also available in: Atom PDF