Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdd667b2

Browse files
committed
feat(wl3): add __libc_init_array support
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parentcafa340 commitdd667b2

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

‎variants/STM32WL3x/WL33C(8-B-C)Vx(X)/ldscript.ld‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,42 @@ SECTIONS
9797
*(.glue_7)/* glue arm to thumb code*/
9898
*(.glue_7t)/* glue thumb to arm code*/
9999

100+
KEEP (*(.init))
101+
KEEP (*(.fini))
102+
100103
. =ALIGN(4);
101104
_etext = .;
102105
} >FLASH
103106

107+
.preinit_array (READONLY) :
108+
{
109+
. =ALIGN(4);
110+
PROVIDE_HIDDEN (__preinit_array_start = .);
111+
KEEP (*(.preinit_array*))
112+
PROVIDE_HIDDEN (__preinit_array_end = .);
113+
. =ALIGN(4);
114+
} >FLASH
115+
116+
.init_array (READONLY) :
117+
{
118+
. =ALIGN(4);
119+
PROVIDE_HIDDEN (__init_array_start = .);
120+
KEEP (*(SORT(.init_array.*)))
121+
KEEP (*(.init_array*))
122+
PROVIDE_HIDDEN (__init_array_end = .);
123+
. =ALIGN(4);
124+
} >FLASH
125+
126+
.fini_array (READONLY) :
127+
{
128+
. =ALIGN(4);
129+
PROVIDE_HIDDEN (__fini_array_start = .);
130+
KEEP (*(SORT(.fini_array.*)))
131+
KEEP (*(.fini_array*))
132+
PROVIDE_HIDDEN (__fini_array_end = .);
133+
. =ALIGN(4);
134+
} >FLASH
135+
104136
/* used by the startup to initialize data*/
105137
_sidata =LOADADDR(.data);
106138

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp