nuttx/binfmt/libelf
Ville Juven 9af8b740e6 Elf loader: give temporary write access to user .text memory
When the .elf file is loaded from disk, the kernel must be given write
access to the allocated .text section in the task's address environment.

The access is removed after the elf is loaded and relocations are done.

NOTE:
The reason this works for the ARM implementation, is that the ARM MMU
can be configured to give write access for the privileged mode, but
revoke write access for the user mode.

Regardless, it would be smart to revoke write access even for the
kernel, when the kernel does not need it. This framework allows doing
that, if someone wishes to take up the task.
2022-05-03 21:25:25 +09:00
..
gnu-elf.ld Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
Kconfig binfmt/elf: add bare metal coredump support 2021-11-23 20:48:00 -06:00
libelf_addrenv.c Elf loader: give temporary write access to user .text memory 2022-05-03 21:25:25 +09:00
libelf_bind.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
libelf_coredump.c Fix libelf/libelf_coredump.c:234:7: warning: 'strncpy' output may be truncated copying 16 bytes from a string of length 31 2022-03-22 08:37:33 +02:00
libelf_ctors.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
libelf_dtors.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
libelf_init.c binfmt: Replace all nx_ API with file_ API 2021-07-06 11:18:13 +09:00
libelf_iobuffer.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
libelf_load.c binfmt/libelf: Implement sh_addralign handling 2022-01-28 16:23:23 +08:00
libelf_read.c binfmt: Replace all nx_ API with file_ API 2021-07-06 11:18:13 +09:00
libelf_sections.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
libelf_symbols.c symtabs: improve handling of symbol lookups 2021-03-16 10:18:17 -07:00
libelf_uninit.c binfmt: Replace all nx_ API with file_ API 2021-07-06 11:18:13 +09:00
libelf_unload.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
libelf_verify.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
libelf.h Elf loader: give temporary write access to user .text memory 2022-05-03 21:25:25 +09:00
Make.defs binfmt/elf: add bare metal coredump support 2021-11-23 20:48:00 -06:00