svn commit: r204667 - user/jmallett/octeon/lib/libc/mips
Juli Mallett
jmallett at FreeBSD.org
Wed Mar 3 21:34:21 UTC 2010
Author: jmallett
Date: Wed Mar 3 21:34:21 2010
New Revision: 204667
URL: http://svn.freebsd.org/changeset/base/204667
Log:
In the PIC prologue for syscalls, use the address of the syscall leaf, not one
of the weak symbols for it, as the function. This unbreaks at least lseek and
anything else where libc overrides the weak symbol.
Modified:
user/jmallett/octeon/lib/libc/mips/SYS.h
Modified: user/jmallett/octeon/lib/libc/mips/SYS.h
==============================================================================
--- user/jmallett/octeon/lib/libc/mips/SYS.h Wed Mar 3 21:28:55 2010 (r204666)
+++ user/jmallett/octeon/lib/libc/mips/SYS.h Wed Mar 3 21:34:21 2010 (r204667)
@@ -133,7 +133,7 @@ LEAF(__sys_ ## x); \
_C_LABEL(x) = _C_LABEL(__CONCAT(__sys_,x)); \
.weak _C_LABEL(__CONCAT(_,x)); \
_C_LABEL(__CONCAT(_,x)) = _C_LABEL(__CONCAT(__sys_,x)); \
- PIC_PROLOGUE(x); \
+ PIC_PROLOGUE(__sys_ ## x); \
SYSTRAP(x); \
bne a3,zero,err; \
PIC_RETURN(); \
More information about the svn-src-user
mailing list