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 674ffd5Copy full SHA for 674ffd5
src/linker.ld
@@ -56,7 +56,17 @@ 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.
64
+ */
65
+ BYTE(0x00)
66
+ FILL(0x00) /* Force at least one byte */
67
+ . = ALIGN(PAGE_SIZE);
68
+ }
69
+
70
_image_load_end = .;
71
#ifdef MEM_NON_UNIFIED
72
/* Save the current location counter (VMA) and switch to LMA for .vm_images */
0 commit comments