Skip to content

Commit

Permalink
Linker script fix for CPP Support
Browse files Browse the repository at this point in the history
  • Loading branch information
valeklubomir committed Oct 19, 2022
1 parent be33768 commit 37c82f2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
5 changes: 3 additions & 2 deletions b_full.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
./build_app.sh apps/OpenBK7231N_App OpenBK7231N_App 1.0.2 clean
./build_app.sh apps/OpenBK7231N_App OpenBK7231N_App 1.0.2
./build_app.sh apps/OpenBK7231N_App OpenBK7231N_App 1.0.3 clean
./build_app.sh apps/OpenBK7231N_App OpenBK7231N_App 1.0.3
cp -f apps/OpenBK7231N_App/output/1.0.3/OpenBK7231N_App_1.0.3.rbl /var/www/OpenBK7231N_App_1.0.3.rbl

3 changes: 2 additions & 1 deletion b_rebuild.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
./build_app.sh apps/OpenBK7231N_App OpenBK7231N_App 1.0.2
./build_app.sh apps/OpenBK7231N_App OpenBK7231N_App 1.0.3
cp -f apps/OpenBK7231N_App/output/1.0.3/OpenBK7231N_App_1.0.3.rbl /var/www/OpenBK7231N_App_1.0.3.rbl

6 changes: 4 additions & 2 deletions platforms/bk7231n/bk7231n_os/beken378/build/bk7231_ota.ld
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ SECTIONS
*(.rodata.*)
*(.gnu.linkonce.r*)
} > flash


__exidx_start = .;
.ARM.exidx :
{
*(.ARM.exidx*)
*(.gnu.linkonce.armexidx.*)
} > flash
__exidx_end = .;

/* globals.for example: int ram_data[3]={4,5,6}; */ /* VMA in RAM, but keep LMA in flash */
_begin_data = .;
Expand Down Expand Up @@ -121,4 +123,4 @@ SECTIONS
libc.a
libm.a
libnosys.a
)
)
8 changes: 5 additions & 3 deletions platforms/bk7231n/bk7231n_os/beken378/build/bk7231n_ota.ld
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,15 @@ SECTIONS
*(.rodata.*)
*(.gnu.linkonce.r*)
} > flash


__exidx_start = .;
.ARM.exidx :
{
*(.ARM.exidx*)
*(.gnu.linkonce.armexidx.*)
} > flash

__exidx_end = .;

. = ORIGIN(tcm);
.tcm ALIGN(8) :
{
Expand Down Expand Up @@ -559,4 +561,4 @@ SECTIONS
libc.a
libm.a
libnosys.a
)
)

0 comments on commit 37c82f2

Please sign in to comment.