]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: add FDPIC and static PIE support for noMMU
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 3 Jun 2022 18:31:14 +0000 (11:31 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 14 Sep 2022 01:28:00 +0000 (18:28 -0700)
commit092e8ef7ab93e1c66cd7a8d0411b334d1060439d
treec4a5c648f6622b6c655b3cbd02d7575e30898b58
parented3b70365c17c750a9ec0ee3dfe96e9e493b4fdf
xtensa: add FDPIC and static PIE support for noMMU

Define ELFOSABI_XTENSA_FDPIC and use it as an OSABI tag in the ELF
header to distinguish FDPIC ELF files from regular ELF files.
Define ELF_FDPIC_PLAT_INIT and put executable map, interpreter map and
executable dynamic section addresses into registers a4..a6.
Update start_thread macro to preserve register values in the current
register window.
Add definitions for PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC and
PTRACE_GETFDPIC_INTERP.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/elf.h
arch/xtensa/include/asm/processor.h
arch/xtensa/include/uapi/asm/ptrace.h
fs/Kconfig.binfmt