File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ SECTIONS
35
35
{
36
36
/* Second stage bootloader is prepended to the image. It must be 256 bytes big
37
37
and checksummed. It is usually built by the boot_stage2 target
38
- in the Pico SDK
38
+ in the Raspberry Pi Pico SDK
39
39
*/
40
40
41
41
.flash_begin : {
@@ -59,12 +59,11 @@ SECTIONS
59
59
*/
60
60
61
61
.text : {
62
- __reset_start = .;
63
- KEEP (*(.reset))
64
- . = ALIGN (256);
65
- __reset_end = .;
66
- ASSERT (__reset_end - __reset_start == 256, "ERROR : reset section should only be 256 bytes");
62
+ __logical_binary_start = .;
67
63
KEEP (*(.vectors))
64
+ KEEP (*(.binary_info_header))
65
+ __binary_info_header_end = .;
66
+ KEEP (*(.reset))
68
67
/* TODO revisit this now memset/memcpy/float in ROM */
69
68
/* bit of a hack right now to exclude all floating point and time critical (e.g. memset, memcpy) code from
70
69
* FLASH ... we will include any thing excluded here in .data below by default */
@@ -247,6 +246,8 @@ SECTIONS
247
246
248
247
/* Check if data + heap + stack exceeds RAM limit */
249
248
ASSERT (__StackLimit >= __HeapLimit, "region RAM overflowed")
249
+
250
+ ASSERT ( __binary_info_header_end - __logical_binary_start <= 256, "Binary info must be in first 256 bytes of the binary")
250
251
/* todo assert on extra code */
251
252
}
252
253
You can’t perform that action at this time.
0 commit comments