diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2022-06-03 11:31:14 -0700 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2022-09-13 18:28:00 -0700 |
commit | e3ddb8bbe0f8cc994748c81e17acc58fda6f8abe (patch) | |
tree | c4a5c648f6622b6c655b3cbd02d7575e30898b58 /arch/xtensa/include/uapi | |
parent | ccd2d9df6e21581dfed3e6dffb3b6f1b7efd1a26 (diff) | |
download | linux-e3ddb8bbe0f8cc994748c81e17acc58fda6f8abe.tar.gz |
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>
Diffstat (limited to 'arch/xtensa/include/uapi')
-rw-r--r-- | arch/xtensa/include/uapi/asm/ptrace.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/xtensa/include/uapi/asm/ptrace.h b/arch/xtensa/include/uapi/asm/ptrace.h index 50db3e0a6341..9115e86ebc75 100644 --- a/arch/xtensa/include/uapi/asm/ptrace.h +++ b/arch/xtensa/include/uapi/asm/ptrace.h @@ -37,6 +37,10 @@ #define PTRACE_SETXTREGS 19 #define PTRACE_GETHBPREGS 20 #define PTRACE_SETHBPREGS 21 +#define PTRACE_GETFDPIC 22 + +#define PTRACE_GETFDPIC_EXEC 0 +#define PTRACE_GETFDPIC_INTERP 1 #ifndef __ASSEMBLY__ |