arch/xtensa: adsp: Rename module_init section

.module_init sections is used to keep all components constructor
functions.

Zephyr uses -ffunction-sections option which will create a section for
each function. Unfortunately, this creates a section named .module_init
for the function module_init() used to initialize the processing module
generic layer.

Thus, places module_init() in the constructor area named .module_init
which is wrong.

To avoid this we rename .module_init section for constructors to
.initcall.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
Daniel Baluta 2022-04-21 10:05:24 +03:00 committed by Anas Nashif
parent fb2a966128
commit c3c026e03c
3 changed files with 3 additions and 3 deletions

View file

@ -311,7 +311,7 @@ SECTIONS {
.module_init : {
_module_init_start = .;
*(*.module_init)
*(*.initcall)
_module_init_end = .;
} >ram

View file

@ -339,7 +339,7 @@ SECTIONS
.module_init : ALIGN(4)
{
_module_init_start = ABSOLUTE(.);
*(*.module_init)
*(*.initcall)
_module_init_end = ABSOLUTE(.);
} >sdram0 :sdram0_phdr

View file

@ -339,7 +339,7 @@ SECTIONS
.module_init : ALIGN(4)
{
_module_init_start = ABSOLUTE(.);
*(*.module_init)
*(*.initcall)
_module_init_end = ABSOLUTE(.);
} >sdram0 :sdram0_phdr