[RTEMS Project] #4439: Open of /dev/console should only be in SysInit List if Console Enabled

RTEMS trac trac at rtems.org
Fri May 21 21:28:46 UTC 2021


#4439: Open of /dev/console should only be in SysInit List if Console Enabled
----------------------------+--------------------
  Reporter:  Joel Sherrill  |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  normal         |  Milestone:  6.1
 Component:  rtems          |    Version:  6
  Severity:  normal         |   Keywords:
Blocked By:                 |   Blocking:
----------------------------+--------------------
 The current code implicitly requires that the code to open /dev/console be
 included in the system initialization set anytime a dependency exists on
 the newlib reentrancy structure. This means that referencing errno pulls
 in at least open(), libio code, close(), atexit(), and unmount support.

 This was shown to result in about 20K of text an 5K of data being included
 in powerpc/psim minimum.exe. A similar impact would happen on all BSPs.

--
Ticket URL: <http://devel.rtems.org/ticket/4439>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list