From 8a857ce757197702ca6aec05a8167aea58ac663c Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Fri, 21 Oct 2022 23:11:05 +1100 Subject: [PATCH] ble linker --- .../bl_mcu_sdk/drivers/bl702_driver/bl702_flash.ld | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/Core/BSP/Pinecilv2/bl_mcu_sdk/drivers/bl702_driver/bl702_flash.ld b/source/Core/BSP/Pinecilv2/bl_mcu_sdk/drivers/bl702_driver/bl702_flash.ld index 3fb9b5ec..bc52b6c9 100644 --- a/source/Core/BSP/Pinecilv2/bl_mcu_sdk/drivers/bl702_driver/bl702_flash.ld +++ b/source/Core/BSP/Pinecilv2/bl_mcu_sdk/drivers/bl702_driver/bl702_flash.ld @@ -32,7 +32,7 @@ SECTIONS { PROVIDE(__metal_chicken_bit = 0); - .text : + .text : { . = ALIGN(4); __text_code_start__ = .; @@ -73,9 +73,19 @@ SECTIONS *bl702_xip_sflash_ext*.o* \ *bl702_ef_ctrl*.o*) .rodata*) + *(.rodata) + *(.rodata.*) + *(.srodata) *(.srodata.*) + _bt_gatt_service_static_list_start = .; + KEEP(*(SORT_BY_NAME("._bt_gatt_service_static.static.*"))) + _bt_gatt_service_static_list_end = .; + _bt_l2cap_fixed_chan_list_start = .; + KEEP(*(SORT_BY_NAME("._bt_l2cap_fixed_chan.static.*"))) + _bt_l2cap_fixed_chan_list_end = .; + . = ALIGN(4); __text_code_end__ = .; } > xip_memory