From 1d1fcd04ebac848accf27941e78e7eb6e3e315d6 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Tue, 2 Jan 2018 18:43:00 -0800 Subject: 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. --- bsp/libwrap/sys/read.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bsp/libwrap/sys/read.c') diff --git a/bsp/libwrap/sys/read.c b/bsp/libwrap/sys/read.c index 4e35364..3226cdb 100644 --- a/bsp/libwrap/sys/read.c +++ b/bsp/libwrap/sys/read.c @@ -7,6 +7,7 @@ #include "platform.h" #include "stub.h" +#include "weak_under_alias.h" ssize_t __wrap_read(int fd, void* ptr, size_t len) { @@ -28,3 +29,4 @@ ssize_t __wrap_read(int fd, void* ptr, size_t len) return _stub(EBADF); } +weak_under_alias(read); -- cgit v1.2.1-18-gbd029