xref: /aosp_15_r20/external/pigweed/targets/rp2040/patches/rp2350_memmap_default.ld.patch (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1diff --git a/src/rp2_common/pico_crt0/rp2350/memmap_default.ld b/src/rp2_common/pico_crt0/rp2350/memmap_default.ld
2index ba8a113..ae78e20 100644
3--- a/src/rp2_common/pico_crt0/rp2350/memmap_default.ld
4+++ b/src/rp2_common/pico_crt0/rp2350/memmap_default.ld
5@@ -19,6 +19,8 @@
6     __StackLimit
7     __StackTop
8     __stack (== StackTop)
9+    __pw_code_begin
10+    __pw_code_end
11 */
12
13 MEMORY
14@@ -49,6 +51,7 @@ SECTIONS
15
16     .text : {
17         __logical_binary_start = .;
18+        __pw_code_begin = .;
19         KEEP (*(.vectors))
20         KEEP (*(.binary_info_header))
21         __binary_info_header_end = .;
22@@ -98,6 +101,7 @@ SECTIONS
23
24         *(.eh_frame*)
25         . = ALIGN(4);
26+        __pw_code_end = .;
27     } > FLASH
28
29     /* Note the boot2 section is optional, and should be discarded if there is
30