We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 504bce1 commit 3d1e91aCopy full SHA for 3d1e91a
src/linker.ld
@@ -56,7 +56,16 @@ SECTIONS
56
_ipi_cpumsg_handlers_id_end = .;
57
}
58
59
- . = ALIGN(PAGE_SIZE);
+ .pad_load : {
60
+ /**
61
+ * This section ensures the loadable portion of the image (_image_load_end) is page-aligned
62
+ * by adding padding if necessary. The BYTE(0x00) forces this section to be PROGBITS rather
63
+ * than NOBITS, ensuring any padding bytes are actually written to the file up to the align
64
+ */
65
+ BYTE(0x00)
66
+ . = ALIGN(PAGE_SIZE);
67
+ }
68
+
69
_image_load_end = .;
70
#ifdef MEM_NON_UNIFIED
71
/* Save the current location counter (VMA) and switch to LMA for .vm_images */
0 commit comments