xtensa: fix linker script transformation for .text.unlikely
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 17 Sep 2012 01:44:31 +0000 (05:44 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Aug 2013 15:26:29 +0000 (08:26 -0700)
commit85d43e3ae1b14931897a7829e8adde373357880b
tree8fff496eb1936264240846d5151f797d3112d7ff
parentd36f8a9594acdd87233b2a7e91328b7d56fa3828
xtensa: fix linker script transformation for .text.unlikely

commit f6a03a12ecdbe0dd80a55f6df3b7206c5a403a49 upstream.

Now that binutils generate *.unlikely sections which don't follow
documented (info as) literal section naming rules, section name
transformation script doesn't work well resulting in the following
errors at vmlinux link time:

main.c:(.text.unlikely+0x3): dangerous relocation: l32r: literal
     placed after use: .literal.unlikely

Fix section name transformation script by adding specific rule for
.text.unlikely sections.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/kernel/Makefile