xref: /aosp_15_r20/external/pigweed/targets/rp2040/patches/rp2040_memmap_default.ld.patch (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1diff --git a/src/rp2_common/pico_crt0/rp2040/memmap_default.ld b/src/rp2_common/pico_crt0/rp2040/memmap_default.ld
2index aea712a..b319360 100644
3--- a/src/rp2_common/pico_crt0/rp2040/memmap_default.ld
4+++ b/src/rp2_common/pico_crt0/rp2040/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@@ -60,6 +62,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@@ -108,6 +111,7 @@ SECTIONS
23
24         *(.eh_frame*)
25         . = ALIGN(4);
26+        __pw_code_end = .;
27     } > FLASH
28
29     .rodata : {
30