Skip to content

Commit

Permalink
Add microzig_flash_end to linker script (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszwojcik authored Jan 25, 2025
1 parent ffbc50a commit a7a702b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions port/raspberrypi/rp2xxx/rp2040.ld
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ SECTIONS
*(.bss*)
microzig_bss_end = .;
} > ram0

.flash_end :
{
microzig_flash_end = .;
} > flash0

microzig_data_load_start = LOADADDR(.data);
}
5 changes: 5 additions & 0 deletions port/raspberrypi/rp2xxx/rp2350_arm.ld
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ SECTIONS
*(.bss*)
microzig_bss_end = .;
} > ram0

.flash_end :
{
microzig_flash_end = .;
} > flash0

microzig_data_load_start = LOADADDR(.data);
}
5 changes: 5 additions & 0 deletions port/raspberrypi/rp2xxx/rp2350_riscv.ld
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ SECTIONS
*(.sbss*)
microzig_bss_end = .;
} > ram0

.flash_end :
{
microzig_flash_end = .;
} > flash0

microzig_data_load_start = LOADADDR(.data);
PROVIDE(__global_pointer$ = microzig_data_start + 0x800);
Expand Down
5 changes: 5 additions & 0 deletions tools/generate_linker_script.zig
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ pub fn main() !void {
\\ microzig_bss_end = .;
\\ } > ram0
\\
\\ .flash_end :
\\ {
\\ microzig_flash_end = .;
\\ } > flash0
\\
\\ microzig_data_load_start = LOADADDR(.data);
\\
);
Expand Down

0 comments on commit a7a702b

Please sign in to comment.