how can i update linker file so that all the functions (say Fls.c) file will be moved to user defined memory section.I tried below code but is not working.code is compiling but size of int_fls_rsv is zero.
.fls_code_rom :
{
. = ALIGN(4);
*Fls.o(.text .text*)
} > int_fls_rsv
Hello,
I'd invite you to see this Howto document:
perhaps you could try to exclude specific object file using (EXCLUDE_FILE) from .text section
.text :
{
. = ALIGN(4);
/* Exclude fsl.o from .text.* section */
*(EXCLUDE_FILE (*fsl.o) .text*)
and then place it into your custom section:
.fls_code_rom :
{
. = ALIGN(4);
*Fls.o(.text*)
} > int_fls_rsv
Hope it helps.
Stan