]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - fs/binfmt_elf_fdpic.c
ARM: enable elf_fdpic on systems with an MMU
authorNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 11 Aug 2017 04:53:39 +0000 (00:53 -0400)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Sun, 10 Sep 2017 23:31:46 +0000 (19:31 -0400)
commit382e67aec6a7eea8ed4403e86950b468a191c468
tree74be0a8304e29a5663419343a3cf62ac5b91ade7
parent50b2b2e691cd4ff30331ba9a6156b29a07b60f90
ARM: enable elf_fdpic on systems with an MMU

Provide the necessary changes to be able to execute ELF-FDPIC binaries
on ARM systems with an MMU.

The default for CONFIG_BINFMT_ELF_FDPIC is also set to n if the regular
ELF loader is already configured so not to force FDPIC support on
everyone. Given that CONFIG_BINFMT_ELF depends on CONFIG_MMU, this means
CONFIG_BINFMT_ELF_FDPIC will still default to y when !MMU.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Mickael GUENE <mickael.guene@st.com>
Tested-by: Vincent Abriou <vincent.abriou@st.com>
Tested-by: Andras Szemzo <szemzo.andras@gmail.com>
arch/arm/include/asm/mmu.h
arch/arm/kernel/elf.c
fs/Kconfig.binfmt
fs/binfmt_elf_fdpic.c