LOG_BACKEND_DEFINE(): use Z_STRUCT_SECTION_ITERABLE()
Replace the open coded section attribute by Z_STRUCT_SECTION_ITERABLE() to properly align structure instances on 64-bit targets. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
This commit is contained in:
parent
caa99b7fed
commit
cd4e7893ea
2 changed files with 2 additions and 3 deletions
|
@ -143,7 +143,7 @@
|
|||
SECTION_DATA_PROLOGUE(log_backends_sections,,)
|
||||
{
|
||||
__log_backends_start = .;
|
||||
KEEP(*(".log_backends"));
|
||||
KEEP(*("._log_backend.*"));
|
||||
__log_backends_end = .;
|
||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue