]> 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)
commit72d4fd7a34e5b02f3d878511cc8a41d05b2fcb9c
treec4a5c648f6622b6c655b3cbd02d7575e30898b58
parent39c9df77e754715d044cc1ae023920a461923cbb
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