From: Chris Metcalf Date: Fri, 9 Aug 2013 20:50:36 +0000 (-0400) Subject: tile: group .hottext* sections properly in vmlinux.lds X-Git-Tag: next-20130822~108^2~25 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=62ca66e0b577d98d5da48e4861ba0a7480bcbeda;p=karo-tx-linux.git 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 --- diff --git a/arch/tile/kernel/vmlinux.lds.S b/arch/tile/kernel/vmlinux.lds.S index aab995578dc2..c7ae53df429e 100644 --- a/arch/tile/kernel/vmlinux.lds.S +++ b/arch/tile/kernel/vmlinux.lds.S @@ -46,6 +46,8 @@ SECTIONS KPROBES_TEXT IRQENTRY_TEXT __fix_text_end = .; /* tile-cpack won't rearrange before this */ + ALIGN_FUNCTION(); + *(.hottext*) TEXT_TEXT *(.text.*) *(.coldtext*)