From: Jan Beulich Date: Wed, 18 Jun 2008 11:36:01 +0000 (+0100) Subject: vmlinux.lds: move __attribute__((__cold__)) functions back into final .text section X-Git-Tag: v2.6.27-rc1~58^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb5e2b379732e1a6ea32392980bb42e0212db842;p=pandora-kernel.git vmlinux.lds: move __attribute__((__cold__)) functions back into final .text section Due to the addition of __attribute__((__cold__)) to a few symbols without adjusting the linker scripts, those symbols currently may end up outside the [_stext,_etext) range, as they get placed in .text.unlikely by (at least) gcc 4.3.0. This may confuse code not only outside of the kernel, symbol_put_addr()'s BUG() could also trigger. Hence we need to add .text.unlikely (and for future uses of __attribute__((__hot__)) also .text.hot) to the TEXT_TEXT() macro. Issue observed by Lukas Lipavsky. Signed-off-by: Jan Beulich Tested-by: Lukas Lipavsky Cc: Signed-off-by: Sam Ravnborg --- Reading git-diff-tree failed