Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib Let libposix and librt have their own version of __cerro...



details:   https://anonhg.NetBSD.org/src/rev/7b32bf6b85e0
branches:  trunk
changeset: 760836:7b32bf6b85e0
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jan 14 05:19:59 2011 +0000

description:
Let libposix and librt have their own version of __cerror (__posix_cerror and
__rt_cerror).  This enables each library (including libc) the oppurtunity to
make its __cerror hidden and avoid being called via the PLT.  No user visible
differences to no need to bump the minor number.

diffstat:

 lib/libposix/sys/Makefile.inc |  6 +++++-
 lib/librt/sys/Makefile.inc    |  6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r a07d7664f385 -r 7b32bf6b85e0 lib/libposix/sys/Makefile.inc
--- a/lib/libposix/sys/Makefile.inc     Fri Jan 14 03:16:37 2011 +0000
+++ b/lib/libposix/sys/Makefile.inc     Fri Jan 14 05:19:59 2011 +0000
@@ -1,7 +1,8 @@
-#      $NetBSD: Makefile.inc,v 1.19 2004/02/08 22:55:27 lukem Exp $
+#      $NetBSD: Makefile.inc,v 1.20 2011/01/14 05:20:00 matt Exp $
 
 # sys sources
 .PATH: ${.CURDIR}/sys
+.PATH: ${ARCHDIR}/sys
 
 # stubs providing an entry "foo" but calling "__posix_foo()"
 PSEUDO=                chown.S fchown.S lchown.S rename.S
@@ -9,6 +10,9 @@
 SRCS+=         ${PSEUDO}
 CLEANFILES+=   ${PSEUDO}
 
+SRCS+=         cerror.S
+CPPFLAGS+=     -D__cerror=__posix_cerror
+
 ASMDEPS=       ${.CURDIR}/sys/Makefile.inc ${ARCHDIR}/SYS.h \
                ${DESTDIR}/usr/include/sys/syscall.h
 
diff -r a07d7664f385 -r 7b32bf6b85e0 lib/librt/sys/Makefile.inc
--- a/lib/librt/sys/Makefile.inc        Fri Jan 14 03:16:37 2011 +0000
+++ b/lib/librt/sys/Makefile.inc        Fri Jan 14 05:19:59 2011 +0000
@@ -1,6 +1,7 @@
-#      $NetBSD: Makefile.inc,v 1.5 2008/01/15 03:37:15 rmind Exp $
+#      $NetBSD: Makefile.inc,v 1.6 2011/01/14 05:19:59 matt Exp $
 
 .PATH: ${.CURDIR}/sys
+.PATH: ${ARCHDIR}/sys
 
 ASM=           aio_cancel.S aio_error.S aio_fsync.S aio_read.S aio_return.S \
                aio_write.S lio_listio.S \
@@ -11,6 +12,9 @@
 SRCS+=         ${ASM}
 CLEANFILES+=   ${ASM}
 
+SRCS+=         cerror.S
+CPPFLAGS+=     -D__cerror=__rt_cerror
+
 ASMDEPS=       ${.CURDIR}/sys/Makefile.inc ${ARCHDIR}/SYS.h \
                ${DESTDIR}/usr/include/sys/syscall.h
 



Home | Main Index | Thread Index | Old Index