Skip to content

Commit db3d447

Browse files
author
Wayne Ren
committed
buildsystem : make sure all text will be linked
TYPE text may not cover all text, so here add extra code to make sure all text will be in .text section Signed-off-by: Wayne Ren <[email protected]>
1 parent 4874eef commit db3d447

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

board/linker_template_mw.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ SECTIONS {
4040
.text ALIGN(4): {
4141
_f_text = .;
4242
*(TYPE text)
43+
*(.text*)
4344
_e_text = .;
4445
}
4546

library/secureshield/board/secureshield_normal_template_mw.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ SECTIONS {
103103
.text ALIGN(4): {
104104
_f_text = .;
105105
*(TYPE text)
106+
*(.text*)
106107
_e_text = .;
107108
}
108109

library/secureshield/board/secureshield_secure_template_mw.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ SECTIONS {
1616
_f_text = .;
1717
KEEP(*(.secureshield_init .secureshield_init.*))
1818
*(TYPE text)
19+
*(.text*)
1920
_e_text = .;
2021
}
2122

0 commit comments

Comments
 (0)