Thanks for the note about libraries. I'll take that into account in the future.
My linker script has the following sections:
/\* The program code and other data into "FLASH" Rom type memory \*/
.text :
{
. = ALIGN(4);
\*(.text) /\* .text sections (code) \*/
\*(.text\*) /\* .text\* sections (code) \*/
\*(.glue_7) /\* glue arm to thumb code \*/
\*(.glue_7t) /\* glue thumb to arm code \*/
\*(.eh_frame)
KEEP (\*(.init))
KEEP (\*(.fini))
. = ALIGN(4);
\_etext = .; /\* define a global symbols at end of code \*/
} \>FLASH
/\* Initialized data sections into "RAM" Ram type memory \*/
.data :
{
. = ALIGN(4);
\_sdata = .; /\* create a global symbol at data start \*/
\*(.data) /\* .data sections \*/
\*(.data\*) /\* .data\* sections \*/
\*(.RamFunc) /\* .RamFunc sections \*/
\*(.RamFunc\*) /\* .RamFunc\* sections \*/
. = ALIGN(4);
\_edata = .; /\* define a global symbol at data end \*/
} \>RAM AT\> FLASH
You wrote to add the file name to section .text, maybe in my case to section .data?
Unfortunately, I am not familiar with the syntax of the linkerscript.
Could you clearly show me what needs to be written to add the file needed_name.o to the needed section.
Thank you.