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:
Nicolas Pitre 2019-08-04 22:33:05 -04:00 committed by Carles Cufí
commit cd4e7893ea
2 changed files with 2 additions and 3 deletions

View file

@ -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)