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:
parent
fb2a966128
commit
c3c026e03c
|
@ -311,7 +311,7 @@ SECTIONS {
|
||||||
|
|
||||||
.module_init : {
|
.module_init : {
|
||||||
_module_init_start = .;
|
_module_init_start = .;
|
||||||
*(*.module_init)
|
*(*.initcall)
|
||||||
_module_init_end = .;
|
_module_init_end = .;
|
||||||
} >ram
|
} >ram
|
||||||
|
|
||||||
|
|
|
@ -339,7 +339,7 @@ SECTIONS
|
||||||
.module_init : ALIGN(4)
|
.module_init : ALIGN(4)
|
||||||
{
|
{
|
||||||
_module_init_start = ABSOLUTE(.);
|
_module_init_start = ABSOLUTE(.);
|
||||||
*(*.module_init)
|
*(*.initcall)
|
||||||
_module_init_end = ABSOLUTE(.);
|
_module_init_end = ABSOLUTE(.);
|
||||||
} >sdram0 :sdram0_phdr
|
} >sdram0 :sdram0_phdr
|
||||||
|
|
||||||
|
|
|
@ -339,7 +339,7 @@ SECTIONS
|
||||||
.module_init : ALIGN(4)
|
.module_init : ALIGN(4)
|
||||||
{
|
{
|
||||||
_module_init_start = ABSOLUTE(.);
|
_module_init_start = ABSOLUTE(.);
|
||||||
*(*.module_init)
|
*(*.initcall)
|
||||||
_module_init_end = ABSOLUTE(.);
|
_module_init_end = ABSOLUTE(.);
|
||||||
} >sdram0 :sdram0_phdr
|
} >sdram0 :sdram0_phdr
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue