OSDN Git Service

xtensa: build kernel with text-section-literals
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 4 Dec 2017 04:55:35 +0000 (20:55 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Sun, 10 Dec 2017 22:48:51 +0000 (14:48 -0800)
commitf8f02ca73cd8d1e2ac61ea1e5f0574a8c1f472fa
tree8356de3e6320b847f661f81c231ffe81ecef6f0b
parent7bf5234db7cce45fa9ff237ce0f45da2bd277cad
xtensa: build kernel with text-section-literals

vmlinux.lds.S doesn't do anything special with literals, so instead of
keeping them separate put them into the corresponding text sections.
Drop explicit .literal sections from the vmlinux.lds.S, use standard
section macros. Mark literal pool locations in the assembly sources.
Unfortunately assembler doesn't put literals into .init sections and
external libgcc may still have .literal sections, so sed transformation
to the linker script is still needed.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/Makefile
arch/xtensa/boot/boot-redboot/bootstrap.S
arch/xtensa/kernel/Makefile
arch/xtensa/kernel/align.S
arch/xtensa/kernel/entry.S
arch/xtensa/kernel/setup.c
arch/xtensa/kernel/vectors.S
arch/xtensa/kernel/vmlinux.lds.S