[RTEMS Project] #3870: libc_reent set up is broken
RTEMS trac
trac at rtems.org
Thu Feb 13 22:10:28 UTC 2020
#3870: libc_reent set up is broken
-------------------------+---------------------
Reporter: Chris Johns | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 4.11.4
Component: score | Version: 4.11
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: 3859 |
-------------------------+---------------------
Comment (by Chris Johns):
Replying to [comment:12 Sebastian Huber]:
> The RTEMS 4.11 release was in 2016. I added the
_REENT_GLOBAL_STDIO_STREAMS option to Newlib in 2017, so this could be an
RTEMS 4.11 only problem.
Yes this is what I have discovered. I am preparing a patch to the newlib
test to check assignements to `stdout` are working so we can spot any
regressions. The check inspects the internal `__sdidinit` state but I feel
this is worth doing because as you say it is fragile and difficult to
spot.
I am preparing shell and test patches for 4.11 and 5 to fix `joel` scripts
on both branches and a work round fix for 4.11. The 4.11 fix is a workable
hack where `_sinit` is called in `newlib_create_hook`. Your solution is
preferred however I do not think a new newlib on a release branch is a
viable solution.
--
Ticket URL: <http://devel.rtems.org/ticket/3870#comment:13>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list