linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/8] ELF-FDPIC support for ARM
@ 2017-08-17  7:23 Nicolas Pitre
  2017-08-17  7:23 ` [PATCH v2 1/8] ARM: implement get_tls syscall Nicolas Pitre
                   ` (8 more replies)
  0 siblings, 9 replies; 26+ messages in thread
From: Nicolas Pitre @ 2017-08-17  7:23 UTC (permalink / raw)
  To: linux-arm-kernel

This series provides the needed changes to suport the ELF_FDPIC binary
format on ARM. Both MMU and non-MMU systems are supported. This format
has many advantages over the BFLT format used on MMU-less systems, such
as being real ELF that can be parsed by standard tools, can support
shared dynamic libs, etc.

This series is also available in the following git repository:

http://git.linaro.org/people/nicolas.pitre/linux fdpic

A complete toolchain and prebuilt packages can be obtained here:

https://github.com/mickael-guene/fdpic_manifest

Changes from v1:

- Reworked the signal return code to be compatible with a non-executable
  stack.
- Rebased on v4.13-rc3 to pick up latest signal changes.
- Added MMU support.
- Fixed crash in the ELF-FDPIC loader when loading an executable with
  shared libs on a system with an MMU.
- Made the regular ELF loader reject FDPIC binaries.

diffstat:

 arch/arm/include/asm/elf.h         | 16 +++++++--
 arch/arm/include/asm/mmu.h         |  8 +++++
 arch/arm/include/asm/processor.h   | 22 +++++++++----
 arch/arm/include/asm/ucontext.h    |  1 +
 arch/arm/include/uapi/asm/ptrace.h |  4 +++
 arch/arm/include/uapi/asm/unistd.h |  1 +
 arch/arm/kernel/asm-offsets.c      |  4 +++
 arch/arm/kernel/elf.c              | 24 +++++++++++++-
 arch/arm/kernel/signal.c           | 53 +++++++++++++++++++++---------
 arch/arm/kernel/signal.h           | 11 +++++++
 arch/arm/kernel/sigreturn_codes.S  | 56 +++++++++++++++++++++++++++++---
 arch/arm/kernel/traps.c            |  3 ++
 fs/Kconfig.binfmt                  |  4 +--
 fs/binfmt_elf.c                    | 15 +++++++--
 fs/binfmt_elf_fdpic.c              | 13 ++++++--
 15 files changed, 199 insertions(+), 36 deletions(-)

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2017-08-29  0:31 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-17  7:23 [PATCH v2 0/8] ELF-FDPIC support for ARM Nicolas Pitre
2017-08-17  7:23 ` [PATCH v2 1/8] ARM: implement get_tls syscall Nicolas Pitre
2017-08-28 14:05   ` [v2,1/8] " Vincent ABRIOU
2017-08-17  7:23 ` [PATCH v2 2/8] arm_elf_read_implies_exec(): remove unused argument Nicolas Pitre
2017-08-28 14:06   ` [v2,2/8] " Vincent ABRIOU
2017-08-17  7:23 ` [PATCH v2 3/8] ARM: start_thread(): don't always clear all regs Nicolas Pitre
2017-08-28 14:07   ` [v2,3/8] " Vincent ABRIOU
2017-08-17  7:23 ` [PATCH v2 4/8] ARM: signal handling support for FDPIC_FUNCPTRS functions Nicolas Pitre
2017-08-28 14:07   ` [v2,4/8] " Vincent ABRIOU
2017-08-17  7:23 ` [PATCH v2 5/8] ARM: add ELF_FDPIC support Nicolas Pitre
2017-08-28 14:07   ` [v2,5/8] " Vincent ABRIOU
2017-08-17  7:23 ` [PATCH v2 6/8] ARM: enable elf_fdpic on systems with an MMU Nicolas Pitre
2017-08-28 14:07   ` [v2,6/8] " Vincent ABRIOU
2017-08-17  7:23 ` [PATCH v2 7/8] binfmt_elf: don't attempt to load FDPIC binaries Nicolas Pitre
2017-08-28 14:08   ` [v2,7/8] " Vincent ABRIOU
2017-08-17  7:23 ` [PATCH v2 8/8] binfmt_elf_fdpic: fix crash on MMU system with dynamic binaries Nicolas Pitre
2017-08-28 14:08   ` [v2, " Vincent ABRIOU
2017-08-29  0:31     ` Nicolas Pitre
2017-08-17  8:37 ` [PATCH v2 0/8] ELF-FDPIC support for ARM Russell King - ARM Linux
2017-08-23 16:41   ` Nicolas Pitre
2017-08-24  8:22     ` Vladimir Murzin
2017-08-24 12:37       ` Nicolas Pitre
2017-08-24 12:46         ` Mickael GUENE
2017-08-24 15:48           ` Nicolas Pitre
2017-08-25  6:23             ` Mickael GUENE
2017-08-25 14:27   ` Mickael GUENE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).