Skip to content

m68knommu: add support for elf-fdpic

Greg Ungerer linux-m68k linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4m68knommu: use asm-generic/mmu.h for nommu setupsarch/m68k/include/asm/mmu.h+1 -31 reply
2/4m68knommu: implement minimal regset supportarch/m68k/kernel/ptrace.c+58 -00 replies
3/4m68knommu: add definitions to support elf_fdpic program loaderarch/m68k/include/asm/elf.h arch/m68k/include/uapi/asm/ptrace.h+14 -00 replies
4/4m68knommu: allow elf_fdpic loader to be selectedfs/Kconfig.binfmt+1 -12 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchGeert Uytterhoeven
1/4R-b
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] m68knommu: add support for elf-fdpic

Add support to the m68k architecture code for the elf-fdpic loader. As of commit 1bde925d2354 ("fs/binfmt_elf_fdpic.c: provide NOMMU loader for regular ELF binaries") it is possible to run normal ELF executables on nommu systems. These are simple enough to generate and test - even without actual elf-fdpic toolchain support.

A few minor changes are required to have everything in place, all on the architecture code side. The largest required addition is minimal regset support (for elf-fdpic core dumping), otherwise a couple of cleanups and some definitions is all that is required.

Note that this is only supporting nommu mode on the m68k at this time. Changes will be required to the mm_context_t type to support elf-fdpic with MMU enabled on m68k.

---
 arch/m68k/include/asm/elf.h         |    9 +++++
 arch/m68k/include/asm/mmu.h         |    4 --
 arch/m68k/include/uapi/asm/ptrace.h |    5 +++
 arch/m68k/kernel/ptrace.c           |   58 ++++++++++++++++++++++++++++++++++++
 fs/Kconfig.binfmt                   |    2 -
 5 files changed, 74 insertions(+), 4 deletions(-)