linker: tests: Use Z_LINK_ITERABLE_SUBALIGN

Updates the linker script fragments under 'tests' to use
Z_LINK_ITERABLE_SUBALIGN for the subalignment instead of
a hardcoded value of 4.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
This commit is contained in:
Peter Mitsis 2024-04-10 11:43:36 -04:00 committed by Anas Nashif
parent 89679cd975
commit 62db185d5b
4 changed files with 15 additions and 15 deletions

View file

@ -1,7 +1,7 @@
#include <zephyr/linker/iterable_sections.h> #include <zephyr/linker/iterable_sections.h>
ITERABLE_SECTION_RAM(test_ram, 4) ITERABLE_SECTION_RAM(test_ram, Z_LINK_ITERABLE_SUBALIGN)
ITERABLE_SECTION_RAM(test_ram2, 4) ITERABLE_SECTION_RAM(test_ram2, Z_LINK_ITERABLE_SUBALIGN)
ITERABLE_SECTION_RAM(test_ram_named, 4) ITERABLE_SECTION_RAM(test_ram_named, Z_LINK_ITERABLE_SUBALIGN)
ITERABLE_SECTION_RAM_NUMERIC(test_ram_numeric, 4) ITERABLE_SECTION_RAM_NUMERIC(test_ram_numeric, Z_LINK_ITERABLE_SUBALIGN)
ITERABLE_SECTION_RAM(ramn_alt, 4) ITERABLE_SECTION_RAM(ramn_alt, Z_LINK_ITERABLE_SUBALIGN)

View file

@ -1,7 +1,7 @@
#include <zephyr/linker/iterable_sections.h> #include <zephyr/linker/iterable_sections.h>
ITERABLE_SECTION_ROM(test_rom, 4) ITERABLE_SECTION_ROM(test_rom, Z_LINK_ITERABLE_SUBALIGN)
ITERABLE_SECTION_ROM(test_rom2, 4) ITERABLE_SECTION_ROM(test_rom2, Z_LINK_ITERABLE_SUBALIGN)
ITERABLE_SECTION_ROM(test_rom_named, 4) ITERABLE_SECTION_ROM(test_rom_named, Z_LINK_ITERABLE_SUBALIGN)
ITERABLE_SECTION_ROM_NUMERIC(test_rom_numeric, 4) ITERABLE_SECTION_ROM_NUMERIC(test_rom_numeric, Z_LINK_ITERABLE_SUBALIGN)
ITERABLE_SECTION_ROM(romn_alt, 4) ITERABLE_SECTION_ROM(romn_alt, Z_LINK_ITERABLE_SUBALIGN)

View file

@ -2,6 +2,6 @@
#include <zephyr/linker/iterable_sections.h> #include <zephyr/linker/iterable_sections.h>
ITERABLE_SECTION_RAM(coap_resource_service_A, 4) ITERABLE_SECTION_RAM(coap_resource_service_A, Z_LINK_ITERABLE_SUBALIGN)
ITERABLE_SECTION_RAM(coap_resource_service_B, 4) ITERABLE_SECTION_RAM(coap_resource_service_B, Z_LINK_ITERABLE_SUBALIGN)
ITERABLE_SECTION_RAM(coap_resource_service_C, 4) ITERABLE_SECTION_RAM(coap_resource_service_C, Z_LINK_ITERABLE_SUBALIGN)

View file

@ -1,4 +1,4 @@
#include <zephyr/linker/iterable_sections.h> #include <zephyr/linker/iterable_sections.h>
ITERABLE_SECTION_ROM(http_resource_desc_service_A, 4) ITERABLE_SECTION_ROM(http_resource_desc_service_A, Z_LINK_ITERABLE_SUBALIGN)
ITERABLE_SECTION_ROM(http_resource_desc_service_B, 4) ITERABLE_SECTION_ROM(http_resource_desc_service_B, Z_LINK_ITERABLE_SUBALIGN)