02f021068f
These special kernel sections represent arrays of kernel objects than are iterated over at runtime to perform initialization. The code expects all the data in these sections to be in the form of an array of that section type, with each element sizeof(type) bytes apart. Unfortunately, the linker sometimes has other plans and in some cases was defaulting to aligning the data to some large power-of-two value, such as 64 bytes. This causes any attempt to iterate over these sections to fail as they are not a proper array. Use the ld SUBALIGN() directive to force the alignment of these input sections to 4 bytes. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com> |
||
---|---|---|
.. | ||
common-ram.ld | ||
common-rom.ld | ||
intlist.ld | ||
linker-defs.h | ||
linker-tool-gcc.h | ||
linker-tool.h | ||
section_tags.h | ||
sections.h |