Commit 7037c1d
committed
loader: additional fixes for Arduino_JSON
Minor fixes for Arduino_JSON library compatibility:
- '__assert_no_args' and 'exit' are actually libc symbols, so the guards
prevented their export in certain situations.
- _exit, stdin, stdout, stderr symbols are also exported to cover the
dynamic link case.
- an 'undefined reference to _ctype_' error occurred because the libc is
compiled with -Os, while the sketches are NOT - this creates an issue
because the size optimization auto-selects a different version of
ctype functions in picolibc. -D_PICOLIBC_CTYPE_SMALL=1 forces the
small version to be used.
Signed-off-by: Luca Burelli <l.burelli@arduino.cc>1 parent a93b329 commit 7037c1d
2 files changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | 193 | | |
195 | 194 | | |
196 | 195 | | |
| |||
235 | 234 | | |
236 | 235 | | |
237 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
238 | 243 | | |
239 | 244 | | |
240 | 245 | | |
| |||
277 | 282 | | |
278 | 283 | | |
279 | 284 | | |
280 | | - | |
281 | 285 | | |
282 | 286 | | |
283 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments