From 35dcecc6dbc80d81c3ed16fbd2bbeff7c8892746 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 11 Feb 2014 19:54:30 +0000 Subject: 2014-02-11 Joey Ye * libc/sys/arm/syscalls.c (_sbrk): Define as weak symbols. (_read, _write): Ditto. --- newlib/libc/sys/arm/syscalls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'newlib/libc/sys/arm/syscalls.c') diff --git a/newlib/libc/sys/arm/syscalls.c b/newlib/libc/sys/arm/syscalls.c index c5df5bb8a..04dde4558 100644 --- a/newlib/libc/sys/arm/syscalls.c +++ b/newlib/libc/sys/arm/syscalls.c @@ -202,7 +202,7 @@ _swiread (int file, #endif } -int +int __attribute__((weak)) _read (int file, char * ptr, int len) @@ -307,7 +307,7 @@ _swiwrite ( #endif } -int +int __attribute__((weak)) _write (int file, char * ptr, int len) @@ -451,7 +451,7 @@ _getpid (int n) n = n; } -caddr_t +caddr_t __attribute__((weak)) _sbrk (int incr) { extern char end asm ("end"); /* Defined by the linker. */ -- cgit v1.2.3