Merge pull request #966 from openmv/linker_scripts

Cleanup linker scripts.
This commit is contained in:
Ibrahim Abd Elkader 2020-11-14 00:38:27 +02:00 committed by GitHub
commit f87bc2b3c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 34 deletions

View File

@ -45,10 +45,10 @@ SECTIONS
} >FLASH_TEXT
/* used by the startup to initialize data */
_sidata = .;
_sidata = LOADADDR(.data);
/* Initialized data sections goes into RAM, load LMA copy after code */
.data : AT ( _sidata )
.data :
{
. = ALIGN(4);
_sdata = .; /* create a global symbol at data start */
@ -58,23 +58,19 @@ SECTIONS
. = ALIGN(4);
_edata = .; /* define a global symbol at data end */
} >DTCM
} >DTCM AT> FLASH_TEXT
/* Uninitialized data section */
. = ALIGN(4);
.bss :
{
/* This is used by the startup in order to initialize the .bss secion */
_sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss;
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .; /* define a global symbol at bss end */
__bss_end__ = _ebss;
_bss_end = _ebss; /* for gccollect */
_sbss = .; // Used by the startup to initialize the .bss secion
*(.bss*)
. = ALIGN(4);
*(COMMON)
. = ALIGN(4);
_ebss = .; // define a global symbol at bss end
} >DTCM
/* Make sure there is enough RAM the stack and FS cache */

View File

@ -106,7 +106,7 @@ SECTIONS
} > FLASH_TEXT
/* used by the startup to initialize data */
_sidata = .;
_sidata = LOADADDR(.data);
/* Main framebuffer memory */
.fb_memory (NOLOAD) :
@ -167,7 +167,7 @@ SECTIONS
#endif
/* Initialized data sections */
.data : AT ( _sidata )
.data :
{
. = ALIGN(4);
_sdata = .; // Create a global symbol at data start
@ -179,7 +179,7 @@ SECTIONS
. = ALIGN(4);
_edata = .; // define a global symbol at data end
} >OMV_MAIN_MEMORY
} >OMV_MAIN_MEMORY AT> FLASH_TEXT
/* Uninitialized data section */
. = ALIGN(4);
@ -187,19 +187,11 @@ SECTIONS
{
. = ALIGN(4);
_sbss = .; // Used by the startup to initialize the .bss secion
__bss_start__ = _sbss;
*(.bss)
. = ALIGN(4);
*(.bss*)
. = ALIGN(4);
*(COMMON)
. = ALIGN(4);
_ebss = .; // define a global symbol at bss end
_bss_end = .; // Used by gccollect
__bss_end__ = .;
} >OMV_MAIN_MEMORY
._heap (NOLOAD) :

View File

@ -87,7 +87,7 @@ SECTIONS
} >FLASH_TEXT
/* used by the startup to initialize data */
_sidata = .;
_sidata = LOADADDR(.data);
/* Main framebuffer memory */
.fb_memory (NOLOAD) :
@ -139,7 +139,7 @@ SECTIONS
} >OMV_DMA_MEMORY
/* Initialized data sections */
.data : AT ( _sidata )
.data :
{
. = ALIGN(4);
_sdata = .; // Create a global symbol at data start
@ -151,7 +151,7 @@ SECTIONS
. = ALIGN(4);
_edata = .; // define a global symbol at data end
} >OMV_MAIN_MEMORY
} >OMV_MAIN_MEMORY AT> FLASH_TEXT
/* Uninitialized data section */
. = ALIGN(4);
@ -159,19 +159,12 @@ SECTIONS
{
. = ALIGN(4);
_sbss = .; // Used by the startup to initialize the .bss secion
__bss_start__ = _sbss;
*(.bss)
. = ALIGN(4);
*(.bss*)
. = ALIGN(4);
*(COMMON)
. = ALIGN(4);
_ebss = .; // define a global symbol at bss end
_bss_end = .; // Used by gccollect
__bss_end__ = .;
} >OMV_MAIN_MEMORY
._heap (NOLOAD) :