]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xtensa: fix linker script transformation for .text.unlikely
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 17 Sep 2012 01:44:31 +0000 (05:44 +0400)
committerChris Zankel <chris@zankel.net>
Tue, 25 Sep 2012 23:24:57 +0000 (16:24 -0700)
commitd86849c91cf0acdbdaffe118ca3c45d78158335c
tree91188d57b0e3ffac4e0591939caadd9a46eb701a
parent979570e02981d4a8fc20b3cc8fd651856c98ee9d
xtensa: fix linker script transformation for .text.unlikely

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>
arch/xtensa/kernel/Makefile