diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2014-02-11 19:55:22 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2014-02-11 19:55:22 +0000 |
commit | 6a7a80d83ce5b73c60d21bac25375541a9be4728 (patch) | |
tree | 497511f179811aaf90f3bacf64c5f7da51cdbc4a /libgloss/arm/syscalls.c | |
parent | 35dcecc6dbc80d81c3ed16fbd2bbeff7c8892746 (diff) | |
download | cygnal-6a7a80d83ce5b73c60d21bac25375541a9be4728.tar.gz cygnal-6a7a80d83ce5b73c60d21bac25375541a9be4728.tar.bz2 cygnal-6a7a80d83ce5b73c60d21bac25375541a9be4728.zip |
2014-02-11 Joey Ye <joey.ye@arm.com>
* arm/syscalls.c (_sbrk): Define as weak symbols.
(_read, _write): Ditto.
Diffstat (limited to 'libgloss/arm/syscalls.c')
-rw-r--r-- | libgloss/arm/syscalls.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgloss/arm/syscalls.c b/libgloss/arm/syscalls.c index 15cc69f61..54e3d74f0 100644 --- a/libgloss/arm/syscalls.c +++ b/libgloss/arm/syscalls.c @@ -264,10 +264,10 @@ _swiread (int fh, #endif } -/* fd, is a valid user file handle. +/* fd, is a valid user file handle. Translates the return of _swiread into bytes read. */ -int +int __attribute__((weak)) _read (int fd, char * ptr, int len) @@ -418,7 +418,7 @@ _swiwrite ( } /* fd, is a user file descriptor. */ -int +int __attribute__((weak)) _write (int fd, char * ptr, int len) @@ -587,7 +587,7 @@ _getpid (int n __attribute__ ((unused))) return 1; } -caddr_t +caddr_t __attribute__((weak)) _sbrk (int incr) { extern char end asm ("end"); /* Defined by the linker. */ |