diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2019-06-25 17:40:28 +0800 |
---|---|---|
committer | Jessica Yu <jeyu@kernel.org> | 2019-06-26 19:27:59 +0200 |
commit | 93651f80dcb616b8c9115cdafc8e57a781af22d0 (patch) | |
tree | c2612618459c3b0569a3b3668687dfaec5e7d7cf /arch/Kconfig | |
parent | 70bac08d4157fda334fe21ee38a2e93bc434bac4 (diff) | |
download | linux-stable-93651f80dcb616b8c9115cdafc8e57a781af22d0.tar.gz linux-stable-93651f80dcb616b8c9115cdafc8e57a781af22d0.tar.bz2 linux-stable-93651f80dcb616b8c9115cdafc8e57a781af22d0.zip |
modules: fix compile error if don't have strict module rwx
If CONFIG_ARCH_HAS_STRICT_MODULE_RWX is not defined,
we need stub for module_enable_nx() and module_enable_x().
If CONFIG_ARCH_HAS_STRICT_MODULE_RWX is defined, but
CONFIG_STRICT_MODULE_RWX is disabled, we need stub for
module_enable_nx.
Move frob_text() outside of the CONFIG_STRICT_MODULE_RWX,
because it is needed anyway.
Fixes: 2eef1399a866 ("modules: fix BUG when load module with rodata=n")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'arch/Kconfig')
0 files changed, 0 insertions, 0 deletions