Skip to content

Commit 2b1bfdb

Browse files
committed
Drop '.init' and '.fini' symbols, allowing GCC 5.x compilation on STM32
1 parent b2fa0d2 commit 2b1bfdb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
`jsvEvaluate` now uses memory area for execution of JS strings (fix #817)
1313
Add `E.setBootCode` to allow JS scripts to be run without being in RAM (fix #740)
1414
'Expecting a number or something iterable, got X' changed to exception rather than warning (gives stack trace)
15+
Drop '.init' and '.fini' symbols, allowing GCC 5.x compilation on STM32
1516

1617
1v85 : Ensure HttpServerResponse.writeHead actually sends the header right away
1718
- enables WebSocket Server support from JS

scripts/build_linker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ def codeOut(s): linkerFile.write(s+"\n");
178178
/* Remove stuff we don't want */
179179
/DISCARD/ :
180180
{
181+
*(.init) /* we don't call init and fini anyway. GCC 5.x starting added them but then optimising them out */
182+
*(.fini)
181183
libc.a ( * )
182184
libm.a ( * )
183185
libgcc.a ( * )

0 commit comments

Comments
 (0)