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>
This commit is contained in:
@@ -42,6 +42,7 @@ __start_a0:
|
||||
.align 4
|
||||
|
||||
.section .text, "ax"
|
||||
.literal_position
|
||||
.begin literal_prefix .text
|
||||
|
||||
/* put literals in here! */
|
||||
|
Reference in New Issue
Block a user