1[sections:bt_iram_text]
2entries:
3    .iram1+
4
5[sections:bt_isr_iram_text]
6entries:
7    .isr_iram1+
8
9[sections:bt_conn_iram_text]
10entries:
11    .conn_iram1+
12
13[sections:bt_bss]
14entries:
15    .bss+
16    .sbss+
17
18[sections:bt_data]
19entries:
20    .data+
21    .sdata+
22    .dram1+
23
24[sections:bt_common]
25entries:
26    COMMON
27
28[scheme:bt_default]
29entries:
30    if BT_CTRL_RUN_IN_FLASH_ONLY = y:
31        bt_iram_text -> flash_text
32        bt_bss -> dram0_bt_bss
33        bt_common -> dram0_bt_bss
34        bt_data -> dram0_bt_data
35
36        if BT_LE_PLACE_CONN_RELATED_INTO_IRAM = y:
37            bt_conn_iram_text -> iram0_bt_text
38            bt_isr_iram_text -> iram0_bt_text
39        else:
40            bt_conn_iram_text -> flash_text
41            bt_isr_iram_text -> flash_text
42    else:
43        bt_iram_text -> iram0_bt_text
44        bt_bss -> dram0_bt_bss
45        bt_common -> dram0_bt_bss
46        bt_data -> dram0_bt_data
47
48        bt_conn_iram_text -> iram0_bt_text
49        bt_isr_iram_text -> iram0_bt_text
50
51# For the following fragments, order matters for
52# 'ALIGN(4) ALIGN(4, post) SURROUND(sym)', which generates:
53#
54#   . = ALIGN(4)
55#   _sym_start
56#   ...
57#   . = ALIGN(4)
58#   _sym_end
59
60[mapping:bt]
61archive: libbt.a
62entries:
63    * (bt_default);
64        bt_bss -> dram0_bt_bss ALIGN(4) ALIGN(4, post) SURROUND(bt_bss),
65        bt_common -> dram0_bt_bss ALIGN(4) ALIGN(4, post) SURROUND(bt_common),
66        bt_data -> dram0_bt_data  ALIGN(4) ALIGN(4, post) SURROUND(bt_data)
67
68[mapping:ble_app]
69archive: libble_app.a
70entries:
71    * (bt_default);
72        bt_bss -> dram0_bt_bss ALIGN(4) ALIGN(4, post) SURROUND(bt_controller_bss),
73        bt_common -> dram0_bt_bss ALIGN(4) ALIGN(4, post) SURROUND(bt_controller_common),
74        bt_data -> dram0_bt_data ALIGN(4) ALIGN(4, post) SURROUND(bt_controller_data)
75
76[mapping:ble_app_flash]
77archive: libble_app_flash.a
78entries:
79    * (bt_default);
80        bt_bss -> dram0_bt_bss ALIGN(4) ALIGN(4, post) SURROUND(bt_controller_bss),
81        bt_common -> dram0_bt_bss ALIGN(4) ALIGN(4, post) SURROUND(bt_controller_common),
82        bt_data -> dram0_bt_data ALIGN(4) ALIGN(4, post) SURROUND(bt_controller_data)
83