Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
circuitpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
circuitpython
Commits
df3b466d
Commit
df3b466d
authored
Oct 29, 2020
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stm32/boards: Factor out common data/bss/heap/stack linker sections.
Signed-off-by:
Damien George
<
damien@micropython.org
>
parent
a866f868
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
84 additions
and
292 deletions
+84
-292
ports/stm32/boards/PYBD_SF2/f722_qspi.ld
ports/stm32/boards/PYBD_SF2/f722_qspi.ld
+2
-35
ports/stm32/boards/PYBD_SF6/f767.ld
ports/stm32/boards/PYBD_SF6/f767.ld
+2
-34
ports/stm32/boards/STM32F769DISC/f769_qspi.ld
ports/stm32/boards/STM32F769DISC/f769_qspi.ld
+2
-39
ports/stm32/boards/common_basic.ld
ports/stm32/boards/common_basic.ld
+2
-46
ports/stm32/boards/common_bl.ld
ports/stm32/boards/common_bl.ld
+2
-46
ports/stm32/boards/common_blifs.ld
ports/stm32/boards/common_blifs.ld
+2
-46
ports/stm32/boards/common_bss_heap_stack.ld
ports/stm32/boards/common_bss_heap_stack.ld
+28
-0
ports/stm32/boards/common_extratext_data_in_flash.ld
ports/stm32/boards/common_extratext_data_in_flash.ld
+14
-0
ports/stm32/boards/common_extratext_data_in_flash_app.ld
ports/stm32/boards/common_extratext_data_in_flash_app.ld
+14
-0
ports/stm32/boards/common_extratext_data_in_flash_text.ld
ports/stm32/boards/common_extratext_data_in_flash_text.ld
+14
-0
ports/stm32/boards/common_ifs.ld
ports/stm32/boards/common_ifs.ld
+2
-46
No files found.
ports/stm32/boards/PYBD_SF2/f722_qspi.ld
View file @
df3b466d
...
@@ -72,39 +72,6 @@ SECTIONS
...
@@ -72,39 +72,6 @@ SECTIONS
_etext = .;
_etext = .;
} >FLASH_APP
} >FLASH_APP
_sidata = LOADADDR(.data);
INCLUDE common_extratext_data_in_flash_app.ld
INCLUDE common_bss_heap_stack.ld
.data :
{
. = ALIGN(4);
_sdata = .;
*(.data*)
. = ALIGN(4);
_edata = .;
} >RAM AT> FLASH_APP
.bss :
{
. = ALIGN(4);
_sbss = .;
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .;
} >RAM
.heap :
{
. = ALIGN(4);
. = . + _minimum_heap_size;
. = ALIGN(4);
} >RAM
.stack :
{
. = ALIGN(4);
. = . + _minimum_stack_size;
. = ALIGN(4);
} >RAM
}
}
ports/stm32/boards/PYBD_SF6/f767.ld
View file @
df3b466d
...
@@ -62,38 +62,6 @@ SECTIONS
...
@@ -62,38 +62,6 @@ SECTIONS
_etext = .;
_etext = .;
} >FLASH_APP
} >FLASH_APP
_sidata = LOADADDR(.data);
INCLUDE common_extratext_data_in_flash_app.ld
INCLUDE common_bss_heap_stack.ld
.data :
{
. = ALIGN(4);
_sdata = .;
*(.data*)
. = ALIGN(4);
_edata = .;
} >RAM AT> FLASH_APP
.bss :
{
. = ALIGN(4);
_sbss = .;
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .;
} >RAM
.heap :
{
. = ALIGN(4);
. = . + _minimum_heap_size;
. = ALIGN(4);
} >RAM
.stack :
{
. = ALIGN(4);
. = . + _minimum_stack_size;
. = ALIGN(4);
} >RAM
}
}
ports/stm32/boards/STM32F769DISC/f769_qspi.ld
View file @
df3b466d
...
@@ -68,43 +68,6 @@ SECTIONS
...
@@ -68,43 +68,6 @@ SECTIONS
_etext = .;
_etext = .;
} >FLASH_APP
} >FLASH_APP
/* Used by the startup to initialize data */
INCLUDE common_extratext_data_in_flash_app.ld
_sidata = LOADADDR(.data);
INCLUDE common_bss_heap_stack.ld
/* The initialized data section */
.data :
{
. = ALIGN(4);
_sdata = .;
*(.data*)
. = ALIGN(4);
_edata = .;
} >RAM AT> FLASH_APP
/* The uninitialized (zeroed) data section */
.bss :
{
. = ALIGN(4);
_sbss = .;
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .;
} >RAM
/* Define the start of the heap, and make sure we have a minimum size */
.heap :
{
. = ALIGN(4);
. = . + _minimum_heap_size;
. = ALIGN(4);
} >RAM
/* Just checks there is enough RAM for the stack */
.stack :
{
. = ALIGN(4);
. = . + _minimum_stack_size;
. = ALIGN(4);
} >RAM
}
}
ports/stm32/boards/common_basic.ld
View file @
df3b466d
...
@@ -37,50 +37,6 @@ SECTIONS
...
@@ -37,50 +37,6 @@ SECTIONS
_etext = .; /* define a global symbol at end of code */
_etext = .; /* define a global symbol at end of code */
} >FLASH
} >FLASH
/* used by the startup to initialize data */
INCLUDE common_extratext_data_in_flash.ld
_sidata = LOADADDR(.data);
INCLUDE common_bss_heap_stack.ld
/* This is the initialized data section
The program executes knowing that the data is in the RAM
but the loader puts the initial values in the FLASH (inidata).
It is one task of the startup to copy the initial values from FLASH to RAM. */
.data :
{
. = ALIGN(4);
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
*(.data*) /* .data* sections */
. = ALIGN(4);
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
} >RAM AT> FLASH
/* Uninitialized data section */
.bss :
{
. = ALIGN(4);
_sbss = .; /* define a global symbol at bss start; used by startup code */
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .; /* define a global symbol at bss end; used by startup code and GC */
} >RAM
/* this is to define the start of the heap, and make sure we have a minimum size */
.heap :
{
. = ALIGN(4);
. = . + _minimum_heap_size;
. = ALIGN(4);
} >RAM
/* this just checks there is enough RAM for the stack */
.stack :
{
. = ALIGN(4);
. = . + _minimum_stack_size;
. = ALIGN(4);
} >RAM
.ARM.attributes 0 : { *(.ARM.attributes) }
}
}
ports/stm32/boards/common_bl.ld
View file @
df3b466d
...
@@ -37,50 +37,6 @@ SECTIONS
...
@@ -37,50 +37,6 @@ SECTIONS
_etext = .; /* define a global symbol at end of code */
_etext = .; /* define a global symbol at end of code */
} >FLASH_APP
} >FLASH_APP
/* used by the startup to initialize data */
INCLUDE common_extratext_data_in_flash_app.ld
_sidata = LOADADDR(.data);
INCLUDE common_bss_heap_stack.ld
/* This is the initialized data section
The program executes knowing that the data is in the RAM
but the loader puts the initial values in the FLASH (inidata).
It is one task of the startup to copy the initial values from FLASH to RAM. */
.data :
{
. = ALIGN(4);
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
*(.data*) /* .data* sections */
. = ALIGN(4);
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
} >RAM AT> FLASH_APP
/* Uninitialized data section */
.bss :
{
. = ALIGN(4);
_sbss = .; /* define a global symbol at bss start; used by startup code */
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .; /* define a global symbol at bss end; used by startup code and GC */
} >RAM
/* this is to define the start of the heap, and make sure we have a minimum size */
.heap :
{
. = ALIGN(4);
. = . + _minimum_heap_size;
. = ALIGN(4);
} >RAM
/* this just checks there is enough RAM for the stack */
.stack :
{
. = ALIGN(4);
. = . + _minimum_stack_size;
. = ALIGN(4);
} >RAM
.ARM.attributes 0 : { *(.ARM.attributes) }
}
}
ports/stm32/boards/common_blifs.ld
View file @
df3b466d
...
@@ -37,50 +37,6 @@ SECTIONS
...
@@ -37,50 +37,6 @@ SECTIONS
_etext = .; /* define a global symbol at end of code */
_etext = .; /* define a global symbol at end of code */
} >FLASH_TEXT
} >FLASH_TEXT
/* used by the startup to initialize data */
INCLUDE common_extratext_data_in_flash_text.ld
_sidata = LOADADDR(.data);
INCLUDE common_bss_heap_stack.ld
/* This is the initialized data section
The program executes knowing that the data is in the RAM
but the loader puts the initial values in the FLASH (inidata).
It is one task of the startup to copy the initial values from FLASH to RAM. */
.data :
{
. = ALIGN(4);
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
*(.data*) /* .data* sections */
. = ALIGN(4);
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
} >RAM AT> FLASH_TEXT
/* Uninitialized data section */
.bss :
{
. = ALIGN(4);
_sbss = .; /* define a global symbol at bss start; used by startup code */
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .; /* define a global symbol at bss end; used by startup code and GC */
} >RAM
/* this is to define the start of the heap, and make sure we have a minimum size */
.heap :
{
. = ALIGN(4);
. = . + _minimum_heap_size;
. = ALIGN(4);
} >RAM
/* this just checks there is enough RAM for the stack */
.stack :
{
. = ALIGN(4);
. = . + _minimum_stack_size;
. = ALIGN(4);
} >RAM
.ARM.attributes 0 : { *(.ARM.attributes) }
}
}
ports/stm32/boards/common_bss_heap_stack.ld
0 → 100644
View file @
df3b466d
/* This linker script fragment is intended to be included in SECTIONS. */
/* Zeroed-out data section */
.bss :
{
. = ALIGN(4);
_sbss = .;
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .;
} >RAM
/* This is to define the start of the heap, and make sure there is a minimum size */
.heap :
{
. = ALIGN(4);
. = . + _minimum_heap_size;
. = ALIGN(4);
} >RAM
/* This checks there is enough RAM for the stack */
.stack :
{
. = ALIGN(4);
. = . + _minimum_stack_size;
. = ALIGN(4);
} >RAM
ports/stm32/boards/common_extratext_data_in_flash.ld
0 → 100644
View file @
df3b466d
/* This linker script fragment is intended to be included in SECTIONS. */
/* Used by the start-up code to initialise data */
_sidata = LOADADDR(.data);
/* Initialised data section, start-up code will copy it from flash to RAM */
.data :
{
. = ALIGN(4);
_sdata = .;
*(.data*)
. = ALIGN(4);
_edata = .;
} >RAM AT> FLASH
ports/stm32/boards/common_extratext_data_in_flash_app.ld
0 → 100644
View file @
df3b466d
/* This linker script fragment is intended to be included in SECTIONS. */
/* Used by the start-up code to initialise data */
_sidata = LOADADDR(.data);
/* Initialised data section, start-up code will copy it from flash to RAM */
.data :
{
. = ALIGN(4);
_sdata = .;
*(.data*)
. = ALIGN(4);
_edata = .;
} >RAM AT> FLASH_APP
ports/stm32/boards/common_extratext_data_in_flash_text.ld
0 → 100644
View file @
df3b466d
/* This linker script fragment is intended to be included in SECTIONS. */
/* Used by the start-up code to initialise data */
_sidata = LOADADDR(.data);
/* Initialised data section, start-up code will copy it from flash to RAM */
.data :
{
. = ALIGN(4);
_sdata = .;
*(.data*)
. = ALIGN(4);
_edata = .;
} >RAM AT> FLASH_TEXT
ports/stm32/boards/common_ifs.ld
View file @
df3b466d
...
@@ -54,50 +54,6 @@ SECTIONS
...
@@ -54,50 +54,6 @@ SECTIONS
_etext = .; /* define a global symbol at end of code */
_etext = .; /* define a global symbol at end of code */
} >FLASH_TEXT
} >FLASH_TEXT
/* used by the startup to initialize data */
INCLUDE common_extratext_data_in_flash_text.ld
_sidata = LOADADDR(.data);
INCLUDE common_bss_heap_stack.ld
/* This is the initialized data section
The program executes knowing that the data is in the RAM
but the loader puts the initial values in the FLASH (inidata).
It is one task of the startup to copy the initial values from FLASH to RAM. */
.data :
{
. = ALIGN(4);
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
*(.data*) /* .data* sections */
. = ALIGN(4);
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
} >RAM AT> FLASH_TEXT
/* Uninitialized data section */
.bss :
{
. = ALIGN(4);
_sbss = .; /* define a global symbol at bss start; used by startup code */
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .; /* define a global symbol at bss end; used by startup code and GC */
} >RAM
/* this is to define the start of the heap, and make sure we have a minimum size */
.heap :
{
. = ALIGN(4);
. = . + _minimum_heap_size;
. = ALIGN(4);
} >RAM
/* this just checks there is enough RAM for the stack */
.stack :
{
. = ALIGN(4);
. = . + _minimum_stack_size;
. = ALIGN(4);
} >RAM
.ARM.attributes 0 : { *(.ARM.attributes) }
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment