Re: [PATCH v3 3/6] modules: Introduce data_layout

2022-02-02 Thread Christophe Leroy
Le 03/02/2022 à 00:48, Luis Chamberlain a écrit : > On Sat, Jan 29, 2022 at 05:02:07PM +, Christophe Leroy wrote: >> diff --git a/kernel/module.c b/kernel/module.c >> index 163e32e39064..11f51e17fb9f 100644 >> --- a/kernel/module.c >> +++ b/kernel/module.c >> @@ -81,6 +81,8 @@ >> /* If

Re: [PATCH v3 3/6] modules: Introduce data_layout

2022-02-02 Thread Luis Chamberlain
On Sat, Jan 29, 2022 at 05:02:07PM +, Christophe Leroy wrote: > diff --git a/kernel/module.c b/kernel/module.c > index 163e32e39064..11f51e17fb9f 100644 > --- a/kernel/module.c > +++ b/kernel/module.c > @@ -81,6 +81,8 @@ > /* If this is set, the section belongs in the init part of the module

[PATCH v3 3/6] modules: Introduce data_layout

2022-01-29 Thread Christophe Leroy
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