Commit e56059f2d3b8a053c965a51587a4a3328ac00a47

Authored by Chris Metcalf
1 parent c0f0601060

tile: group .hottext* sections properly in vmlinux.lds

With this change such sections are grouped with regular text
in the vmlinux image; this change puts them at the front,
which is where the standard Linux includes .text.hot*.
This change should fix a recently-observed bug where a bunch of
symbols were being omitted from the /proc/kallsyms output
because they fell between _etext and _sinittext.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

arch/tile/kernel/vmlinux.lds.S
... ... @@ -46,6 +46,8 @@
46 46 KPROBES_TEXT
47 47 IRQENTRY_TEXT
48 48 __fix_text_end = .; /* tile-cpack won't rearrange before this */
  49 + ALIGN_FUNCTION();
  50 + *(.hottext*)
49 51 TEXT_TEXT
50 52 *(.text.*)
51 53 *(.coldtext*)