module: Introduce data_layout
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 23 Feb 2022 12:02:13 +0000 (13:02 +0100)
committerLuis Chamberlain <mcgrof@kernel.org>
Tue, 5 Apr 2022 15:43:05 +0000 (08:43 -0700)
commit6ab9942c44b2d213a16b2620e4baf0223122222f
tree0ca6816cea5a0928994fa94ae4868df9b4f48b56
parent446d55666d5599ca58c1ceac25ce4b5191e70835
module: Introduce data_layout

In order to allow separation of data from text, add another layout,
called data_layout. For architectures requesting separation of text
and data, only text will go in core_layout and data will go in
data_layout.

For architectures which keep text and data together, make data_layout
an alias of core_layout, that way data_layout can be used for all
data manipulations, regardless of whether data is in core_layout or
data_layout.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module/internal.h
kernel/module/kallsyms.c
kernel/module/main.c
kernel/module/strict_rwx.c