diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-03 20:55:35 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-10 14:48:51 -0800 |
commit | f8f02ca73cd8d1e2ac61ea1e5f0574a8c1f472fa (patch) | |
tree | 8356de3e6320b847f661f81c231ffe81ecef6f0b /arch/xtensa/kernel/Makefile | |
parent | 7bf5234db7cce45fa9ff237ce0f45da2bd277cad (diff) | |
download | linux-f8f02ca73cd8d1e2ac61ea1e5f0574a8c1f472fa.tar.gz linux-f8f02ca73cd8d1e2ac61ea1e5f0574a8c1f472fa.tar.bz2 linux-f8f02ca73cd8d1e2ac61ea1e5f0574a8c1f472fa.zip |
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>
Diffstat (limited to 'arch/xtensa/kernel/Makefile')
-rw-r--r-- | arch/xtensa/kernel/Makefile | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/xtensa/kernel/Makefile b/arch/xtensa/kernel/Makefile index bb8d55775a97..91907590d183 100644 --- a/arch/xtensa/kernel/Makefile +++ b/arch/xtensa/kernel/Makefile @@ -17,9 +17,6 @@ obj-$(CONFIG_XTENSA_VARIANT_HAVE_PERF_EVENTS) += perf_event.o obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o obj-$(CONFIG_S32C1I_SELFTEST) += s32c1i_selftest.o -AFLAGS_head.o += -mtext-section-literals -AFLAGS_mxhead.o += -mtext-section-literals - # In the Xtensa architecture, assembly generates literals which must always # precede the L32R instruction with a relative offset less than 256 kB. # Therefore, the .text and .literal section must be combined in parenthesis |