diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2018-01-02 18:43:00 -0800 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2018-01-02 18:43:00 -0800 |
commit | 1d1fcd04ebac848accf27941e78e7eb6e3e315d6 (patch) | |
tree | b12ce8a5baa230f03e776d2b599343aee7a6150c /bsp/libwrap/sys/_exit.c | |
parent | cee980238e2dbd7c9af0eb79bd5621a4dc73c234 (diff) |
Add _FUNC aliases for newlib-2.5.0
I'm not sure what the policy actaully is here, but some newlib functions
now have an extra underscore before them. This defines a bunch of
aliases and some more wrappers to link against the correct newlib
functions for 2.5.0 but maintain compatibility with 2.4.0.
Diffstat (limited to 'bsp/libwrap/sys/_exit.c')
-rw-r--r-- | bsp/libwrap/sys/_exit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bsp/libwrap/sys/_exit.c b/bsp/libwrap/sys/_exit.c index a548a91..011464f 100644 --- a/bsp/libwrap/sys/_exit.c +++ b/bsp/libwrap/sys/_exit.c @@ -2,8 +2,9 @@ #include <unistd.h> #include "platform.h" +#include "weak_under_alias.h" -void __wrap__exit(int code) +void __wrap_exit(int code) { const char message[] = "\nProgam has exited with code:"; @@ -13,3 +14,4 @@ void __wrap__exit(int code) for (;;); } +weak_under_alias(exit); |