Commit 93019c8
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.
Note by committer: Only under the `loader` was picked.
Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>1 parent 1ad0eb9 commit 93019c8
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
| |||
241 | 240 | | |
242 | 241 | | |
243 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
244 | 249 | | |
245 | 250 | | |
246 | 251 | | |
| |||
283 | 288 | | |
284 | 289 | | |
285 | 290 | | |
286 | | - | |
287 | 291 | | |
288 | 292 | | |
289 | 293 | | |
| |||
0 commit comments