zephyr/include/linker
Andrew Boie 02f021068f linker/common-ram.ld: force input section align
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>
2017-07-10 11:44:56 -07:00
..
common-ram.ld linker/common-ram.ld: force input section align 2017-07-10 11:44:56 -07:00
common-rom.ld net: Renaming net_l2_init sections to net_l2 2016-12-02 12:40:53 +02:00
intlist.ld build: simplfy how extra build steps are specified 2017-05-13 14:07:09 -04:00
linker-defs.h kernel: add early init routines for app RAM 2017-06-29 07:46:58 -04:00
linker-tool-gcc.h linker: move all linker headers to include/linker 2017-06-18 09:24:04 -05:00
linker-tool.h linker: move all linker headers to include/linker 2017-06-18 09:24:04 -05:00
section_tags.h linker: move all linker headers to include/linker 2017-06-18 09:24:04 -05:00
sections.h sections.h: define application-level sections 2017-06-29 07:46:58 -04:00