Skip to content
Commit 3b5be16c authored by He Zhe's avatar He Zhe Committed by Jessica Yu
Browse files

modules: page-align module section allocations only for arches supporting strict module rwx



We should keep the case of "#define debug_align(X) (X)" for all arches
without CONFIG_HAS_STRICT_MODULE_RWX ability, which would save people, who
are sensitive to system size, a lot of memory when using modules,
especially for embedded systems. This is also the intention of the
original #ifdef... statement and still valid for now.

Note that this still keeps the effect of the fix of the following commit,
38f054d5 ("modules: always page-align module section allocations"),
since when CONFIG_ARCH_HAS_STRICT_MODULE_RWX is enabled, module pages are
aligned.

Signed-off-by: default avatarHe Zhe <zhe.he@windriver.com>
Signed-off-by: default avatarJessica Yu <jeyu@kernel.org>
parent 38f054d5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment