tests: Bluetooth: ascs: Fix linker warning

This fixes linker warning caused by invalid bonding of linker scripts
provided by multiple "-T" options.

mock-sections.ld contains output sections did you forget -T

Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
Mariusz Skamra 2023-08-30 14:47:33 +02:00 committed by Carles Cufí
commit d11bc6edb4
2 changed files with 4 additions and 5 deletions

View file

@ -30,7 +30,5 @@ target_include_directories(mocks PUBLIC
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
target_link_libraries(mocks PRIVATE test_interface host_mocks)
target_link_options(mocks PUBLIC
-T "${ZEPHYR_BASE}/tests/bluetooth/audio/mocks/mock-sections.ld"
)
"SHELL:-T ${ZEPHYR_BASE}/tests/bluetooth/audio/mocks/mock-sections.ld")

View file

@ -6,16 +6,17 @@
SECTIONS
{
bt_conn_cb_area : ALIGN(4)
data.bt_conn_cb_area : ALIGN(4)
{
_bt_conn_cb_list_start = .;
KEEP(*(SORT_BY_NAME(._bt_conn_cb.static.*)))
_bt_conn_cb_list_end = .;
}
bt_gatt_service_static_area : ALIGN(4)
data.bt_gatt_service_static_area : ALIGN(4)
{
_bt_gatt_service_static_list_start = .;
KEEP(*(SORT_BY_NAME(._bt_gatt_service_static.static.*)))
_bt_gatt_service_static_list_end = .;
}
}
INSERT AFTER .data;