toolchain: gcc: fix SECTION_DATA_PROLOGUE for XIP
Current if CONFIG_XIP is enabled, then ALIGN_WITH_INPUT and the align argument to SECTION_DATA_PROLOGUE are set together, and that is not a valid option combination; if ALIGN_WITH_INPUT is present, then the section's LMA alignment is inherited from the previous section, and that cannot be combined with another alignment option. The background for this line is in the following commit: 6b3c5e8b Additionally, this is the documentation from ld: (from https://sourceware.org/binutils/docs/ld/Forced-Output-Alignment.html ) > 3.6.8.3 Forced Output Alignment > > You can increase an output section’s alignment by using ALIGN. As an > alternative you can enforce that the difference between the VMA and > LMA remains intact throughout this output section with the > ALIGN_WITH_INPUT attribute. Signed-off-by:Tavish Naruka <t-naruka@ispace-inc.com>
Loading
Please sign in to comment