]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commite3ddb8bbe0f8cc994748c81e17acc58fda6f8abe
treec4a5c648f6622b6c655b3cbd02d7575e30898b58
parentccd2d9df6e21581dfed3e6dffb3b6f1b7efd1a26
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