Skip to content

Commit

Permalink
gen_app_partitions: add .sdata/.sbss section into app_smem
Browse files Browse the repository at this point in the history
Some architectures (e.g. RISC-V) has .sdata/.sbss section for small
data/bss. Memory partition should also manage the permission of these
sections in library so they should be put into app_smem.
(For example, newlib _impure_ptr is in .sdata section and
__malloc_top_pad is in .sbss section in RISC-V.)

Signed-off-by: Jim Shu <[email protected]>
  • Loading branch information
cwshu authored and cfriedt committed Oct 25, 2021
1 parent 3ee3a46 commit 46eb3e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/gen_app_partitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"""

library_data_template = """
*{0}:*(.data .data.*)
*{0}:*(.data .data.* .sdata .sdata.*)
"""

bss_template = """
Expand All @@ -65,7 +65,7 @@
"""

library_bss_template = """
*{0}:*(.bss .bss.* COMMON COMMON.*)
*{0}:*(.bss .bss.* .sbss .sbss.* COMMON COMMON.*)
"""

footer_template = """
Expand Down

0 comments on commit 46eb3e5

Please sign in to comment.