]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
module: allow arch overrides for .exit section names
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Fri, 7 Jun 2019 10:49:11 +0000 (12:49 +0200)
committerJessica Yu <jeyu@kernel.org>
Mon, 24 Jun 2019 12:00:32 +0000 (14:00 +0200)
commit38b37d631aec80da0c65ac03a7ef680b468c7857
tree3cfcaba903c0c0f2ff933cc6859f6fac16ebb110
parent2eef1399a866c57687962e15142b141a4f8e7862
module: allow arch overrides for .exit section names

Some archs like ARM store unwind information for .exit.text in sections
with unusual names. As this unwind information refers to .exit.text, it
must not be loaded when .exit.text is not loaded (when CONFIG_MODULE_UNLOAD
is unset); otherwise, loading a module can fail due to relocation failures.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
include/linux/moduleloader.h
kernel/module.c