Skip to content

Commit

Permalink
Fix linker error in bt component if bss to extram is used
Browse files Browse the repository at this point in the history
So far we did not encounter any problems.
  • Loading branch information
dbahrdt committed Apr 9, 2024
1 parent b502051 commit 56f016e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion components/bt/linker.lf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ entries:
bt_common -> dram0_bss
data -> dram0_data

[scheme:bt_extram_bss]
entries:
bt_bss -> extern_ram
bt_common -> extern_ram
data -> dram0_data

# For the following fragments, order matters for
# 'ALIGN(4) ALIGN(4, post) SURROUND(sym)', which generates:
#
Expand All @@ -25,7 +31,10 @@ entries:
archive: libbt.a
entries:
if ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY = y:
* (extram_bss)
* (bt_extram_bss);
bt_bss -> extern_ram ALIGN(4) ALIGN(4, post) SURROUND(bt_bss),
bt_common -> extern_ram ALIGN(4) ALIGN(4, post) SURROUND(bt_common),
data -> dram0_data ALIGN(4) ALIGN(4, post) SURROUND(bt_data)
else:
* (bt_start_end);
bt_bss -> dram0_bss ALIGN(4) ALIGN(4, post) SURROUND(bt_bss),
Expand Down

0 comments on commit 56f016e

Please sign in to comment.