Re: [PATCH] modules: fix compile error if don't have strict module rwx

2019-06-26 Thread Jessica Yu
+++ Yang Yingliang [26/06/19 11:36 +0800]: On 2019/6/26 3:21, Jessica Yu wrote: +++ Yang Yingliang [25/06/19 17:40 +0800]: 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 CONF

Re: [PATCH] modules: fix compile error if don't have strict module rwx

2019-06-25 Thread Yang Yingliang
On 2019/6/26 3:21, Jessica Yu wrote: +++ Yang Yingliang [25/06/19 17:40 +0800]: 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 s

Re: [PATCH] modules: fix compile error if don't have strict module rwx

2019-06-25 Thread Jessica Yu
+++ Yang Yingliang [25/06/19 17:40 +0800]: 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

[PATCH] modules: fix compile error if don't have strict module rwx

2019-06-25 Thread Yang Yingliang
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, b