]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: improve vmlinux.lds.S sed post-processing
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 21 Aug 2015 17:43:44 +0000 (20:43 +0300)
committerChris Zankel <chris@zankel.net>
Thu, 20 Aug 2015 15:28:42 +0000 (15:28 +0000)
commiteb06a0b2804c2061e1fc11f98eae4a7d9ed9ed75
tree9f695fddee74fb7ebdba3655559c4dc874e504e8
parent0b3a12e137cd4f23c749e0aa726fe29ae51dc769
xtensa: improve vmlinux.lds.S sed post-processing

Current sed script makes assumptions about the structure of rules that
group .text sections in the vmlinux linker script. These assumptions
get broken occasionally, e.g.: 6327079bf954 "ARM: 8321/1: asm-generic:
introduce.text.fixup input section", or 9bebe9e5b0f3 "kbuild: Fix
.text.unlikely placement".

Rewrite sed rules so that they don't depend on number/arrangement of text
sections in *(...) blocks.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/Makefile