Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions options/toolchain/linker_template_gnu.ld
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ SECTIONS
{
_f_text = .;
*(.text .text.* .gnu.linkonce.t.*)
. = ALIGN(4);
_e_text = .;
} > REGION_ROM

Expand Down Expand Up @@ -92,6 +93,7 @@ SECTIONS
__DTOR_END__ = .;

*(.rodata .rodata.* .gnu.linkonce.r.*)
. = ALIGN(4);
_e_rodata = .;
} > REGION_ROM

Expand All @@ -111,6 +113,7 @@ SECTIONS
_e_sbss = .;
PROVIDE (__sbss_end = .);
PROVIDE (___sbss_end = .);
. = ALIGN(4);
_e_sdata = .;
_e_data = .;
} > REGION_RAM AT > REGION_ROM
Expand All @@ -121,6 +124,7 @@ SECTIONS
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
*(COMMON)
. = ALIGN(4);
_e_bss = .;
} > REGION_RAM

Expand All @@ -129,6 +133,7 @@ SECTIONS
. = ALIGN(4);
_f_stack = .;
. = . + _STACKSIZE;
. = ALIGN(4);
_e_stack = .;
} > REGION_RAM

Expand All @@ -138,6 +143,7 @@ SECTIONS
__start_heap = . ;
_f_heap = .;
. = . + _HEAPSIZE;
. = ALIGN(4);
_e_heap = .;
__end_heap = . ;
} > REGION_RAM
Expand Down
5 changes: 5 additions & 0 deletions options/toolchain/linker_template_mw.ld
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ SECTIONS {
_f_text = .;
*(TYPE text)
*(.text*)
. = ALIGN(4);
_e_text = .;
}

Expand All @@ -89,6 +90,7 @@ SECTIONS {

*(TYPE lit)

. = ALIGN(4);
_e_rodata = .;
}

Expand All @@ -101,11 +103,13 @@ SECTIONS {
_f_sdata = .;
*(.sdata)
*(.sbss)
. = ALIGN(4);
_e_sdata = .;
*(TYPE data)
}
.tls ALIGN(8): {
*(.tls*)
. = ALIGN(4);
_e_data = .;
}
} > REGION_RAM
Expand All @@ -114,6 +118,7 @@ SECTIONS {
.bss ALIGN(8): {
_f_bss = .;
*(TYPE bss)
. = ALIGN(4);
_e_bss = .;
}
.stack ALIGN(4) SIZE(_STACKSIZE): {}
Expand Down