79710555

Date: 2025-07-22 13:37:45
Score: 1.5
Natty:
Report link

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.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: mml