[PATCH 0/2] Example use case for a weak function in RTEMS

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Apr 9 04:50:21 UTC 2020


This patch set is not intended for RTEMS 5. I just gives an example how
weak functions can be used in RTMES to reduce the code size for some
applications automatically (through work done by the linker).

Sebastian Huber (2):
  score: Add RTEMS_WEAK
  malloc: Make deferred free support optional

 cpukit/include/rtems/score/basedefs.h    | 12 ++++++++
 cpukit/libcsupport/src/free.c            | 43 +++++++++++++++++++++++++++
 cpukit/libcsupport/src/malloc_deferred.c | 40 ++-----------------------
 cpukit/libcsupport/src/malloc_p.h        |  2 --
 cpukit/libcsupport/src/realloc.c         |  8 +++++
 testsuites/sptests/Makefile.am           |  2 +-
 testsuites/sptests/spmisc01/init.c       |  9 ++++++
 testsuites/sptests/spmisc01/spmisc01.h   | 51 ++++++++++++++++++++++++++++++++
 testsuites/sptests/spmisc01/strong.c     | 42 ++++++++++++++++++++++++++
 9 files changed, 169 insertions(+), 40 deletions(-)
 create mode 100644 testsuites/sptests/spmisc01/spmisc01.h
 create mode 100644 testsuites/sptests/spmisc01/strong.c

-- 
2.16.4



More information about the devel mailing list