From 62db185d5ba85cfc19c63cbe79b260393f74a036 Mon Sep 17 00:00:00 2001 From: Peter Mitsis Date: Wed, 10 Apr 2024 11:43:36 -0400 Subject: [PATCH] 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 --- tests/misc/iterable_sections/sections-ram.ld | 10 +++++----- tests/misc/iterable_sections/sections-rom.ld | 10 +++++----- tests/net/lib/coap_server/common/sections-ram.ld | 6 +++--- tests/net/lib/http_server/common/sections-rom.ld | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/misc/iterable_sections/sections-ram.ld b/tests/misc/iterable_sections/sections-ram.ld index 96454fb282..cf7773b586 100644 --- a/tests/misc/iterable_sections/sections-ram.ld +++ b/tests/misc/iterable_sections/sections-ram.ld @@ -1,7 +1,7 @@ #include -ITERABLE_SECTION_RAM(test_ram, 4) -ITERABLE_SECTION_RAM(test_ram2, 4) -ITERABLE_SECTION_RAM(test_ram_named, 4) -ITERABLE_SECTION_RAM_NUMERIC(test_ram_numeric, 4) -ITERABLE_SECTION_RAM(ramn_alt, 4) +ITERABLE_SECTION_RAM(test_ram, Z_LINK_ITERABLE_SUBALIGN) +ITERABLE_SECTION_RAM(test_ram2, Z_LINK_ITERABLE_SUBALIGN) +ITERABLE_SECTION_RAM(test_ram_named, Z_LINK_ITERABLE_SUBALIGN) +ITERABLE_SECTION_RAM_NUMERIC(test_ram_numeric, Z_LINK_ITERABLE_SUBALIGN) +ITERABLE_SECTION_RAM(ramn_alt, Z_LINK_ITERABLE_SUBALIGN) diff --git a/tests/misc/iterable_sections/sections-rom.ld b/tests/misc/iterable_sections/sections-rom.ld index 525c480c7b..b821decdb2 100644 --- a/tests/misc/iterable_sections/sections-rom.ld +++ b/tests/misc/iterable_sections/sections-rom.ld @@ -1,7 +1,7 @@ #include -ITERABLE_SECTION_ROM(test_rom, 4) -ITERABLE_SECTION_ROM(test_rom2, 4) -ITERABLE_SECTION_ROM(test_rom_named, 4) -ITERABLE_SECTION_ROM_NUMERIC(test_rom_numeric, 4) -ITERABLE_SECTION_ROM(romn_alt, 4) +ITERABLE_SECTION_ROM(test_rom, Z_LINK_ITERABLE_SUBALIGN) +ITERABLE_SECTION_ROM(test_rom2, Z_LINK_ITERABLE_SUBALIGN) +ITERABLE_SECTION_ROM(test_rom_named, Z_LINK_ITERABLE_SUBALIGN) +ITERABLE_SECTION_ROM_NUMERIC(test_rom_numeric, Z_LINK_ITERABLE_SUBALIGN) +ITERABLE_SECTION_ROM(romn_alt, Z_LINK_ITERABLE_SUBALIGN) diff --git a/tests/net/lib/coap_server/common/sections-ram.ld b/tests/net/lib/coap_server/common/sections-ram.ld index d435ffbddd..2cb27dc13a 100644 --- a/tests/net/lib/coap_server/common/sections-ram.ld +++ b/tests/net/lib/coap_server/common/sections-ram.ld @@ -2,6 +2,6 @@ #include -ITERABLE_SECTION_RAM(coap_resource_service_A, 4) -ITERABLE_SECTION_RAM(coap_resource_service_B, 4) -ITERABLE_SECTION_RAM(coap_resource_service_C, 4) +ITERABLE_SECTION_RAM(coap_resource_service_A, Z_LINK_ITERABLE_SUBALIGN) +ITERABLE_SECTION_RAM(coap_resource_service_B, Z_LINK_ITERABLE_SUBALIGN) +ITERABLE_SECTION_RAM(coap_resource_service_C, Z_LINK_ITERABLE_SUBALIGN) diff --git a/tests/net/lib/http_server/common/sections-rom.ld b/tests/net/lib/http_server/common/sections-rom.ld index 437e4bcb65..e8411ede55 100644 --- a/tests/net/lib/http_server/common/sections-rom.ld +++ b/tests/net/lib/http_server/common/sections-rom.ld @@ -1,4 +1,4 @@ #include -ITERABLE_SECTION_ROM(http_resource_desc_service_A, 4) -ITERABLE_SECTION_ROM(http_resource_desc_service_B, 4) +ITERABLE_SECTION_ROM(http_resource_desc_service_A, Z_LINK_ITERABLE_SUBALIGN) +ITERABLE_SECTION_ROM(http_resource_desc_service_B, Z_LINK_ITERABLE_SUBALIGN)