diff options
author | rie <none@none> | 2008-01-24 16:39:56 -0800 |
---|---|---|
committer | rie <none@none> | 2008-01-24 16:39:56 -0800 |
commit | f6acbf7c6543dc0aab58cae1df419f0147c46d77 (patch) | |
tree | c47eb83752097c5a99a6eda6c4923edec8272c4b /usr/src/lib | |
parent | 11022c7cf39f3b863e749f3866f6ddcb445c2d05 (diff) | |
download | illumos-gate-f6acbf7c6543dc0aab58cae1df419f0147c46d77.tar.gz |
4947191 OSNet should use direct bindings
Diffstat (limited to 'usr/src/lib')
-rw-r--r-- | usr/src/lib/Makefile.lib | 6 | ||||
-rw-r--r-- | usr/src/lib/libast/mapfile-vers | 4 | ||||
-rw-r--r-- | usr/src/lib/libldap5/Makefile.com | 4 | ||||
-rw-r--r-- | usr/src/lib/libmp/i386/Makefile | 4 | ||||
-rw-r--r-- | usr/src/lib/libmp/sparc/Makefile | 4 | ||||
-rw-r--r-- | usr/src/lib/libnisdb/Makefile | 13 | ||||
-rw-r--r-- | usr/src/lib/libproc/Makefile.com | 11 | ||||
-rw-r--r-- | usr/src/lib/libsldap/Makefile.com | 3 | ||||
-rw-r--r-- | usr/src/lib/nsswitch/ldap/Makefile.com | 3 | ||||
-rw-r--r-- | usr/src/lib/pam_modules/ldap/Makefile.com | 3 | ||||
-rw-r--r-- | usr/src/lib/passwdutil/Makefile.com | 3 | ||||
-rw-r--r-- | usr/src/lib/print/libpapi-ipp/Makefile.com | 4 | ||||
-rw-r--r-- | usr/src/lib/print/libpapi-lpd/Makefile.com | 6 | ||||
-rw-r--r-- | usr/src/lib/print/libprint/Makefile.com | 3 |
14 files changed, 35 insertions, 36 deletions
diff --git a/usr/src/lib/Makefile.lib b/usr/src/lib/Makefile.lib index 714618b165..7ef968999c 100644 --- a/usr/src/lib/Makefile.lib +++ b/usr/src/lib/Makefile.lib @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" @@ -171,7 +171,7 @@ SONAME= $(DYNLIB) HSONAME= -h$(SONAME) -DYNFLAGS= $(HSONAME) $(ZTEXT) $(ZDEFS) $(ZCOMBRELOC) \ +DYNFLAGS= $(HSONAME) $(ZTEXT) $(ZDEFS) $(ZCOMBRELOC) $(BDIRECT) \ $(MAPFILES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) LDLIBS= $(LDLIBS.lib) @@ -247,7 +247,7 @@ HSONAMECCC= -h $(SONAMECCC) # $(DYNLIBCCC):= DYNFLAGS = $(HSONAMECCC) $(ZTEXT) $(ZDEFS) $(ZCOMBRELOC) \ $(MAPFILES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) \ - $(NORUNPATH) + $(BDIRECT) $(NORUNPATH) # build rule for "portable" source diff --git a/usr/src/lib/libast/mapfile-vers b/usr/src/lib/libast/mapfile-vers index d4818d7a61..3d87a87a3b 100644 --- a/usr/src/lib/libast/mapfile-vers +++ b/usr/src/lib/libast/mapfile-vers @@ -20,7 +20,7 @@ # # -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" @@ -178,7 +178,7 @@ SUNWprivate_1.1 { _ast_procclose; _ast_procfree; _ast_procopen; - _ast_procrun; + _ast_procrun = NODIRECT; # Allow libshell to override _ast_putc_unlocked; _ast_putchar_unlocked; _ast_putenv; diff --git a/usr/src/lib/libldap5/Makefile.com b/usr/src/lib/libldap5/Makefile.com index 878f872a6e..e63c755ce7 100644 --- a/usr/src/lib/libldap5/Makefile.com +++ b/usr/src/lib/libldap5/Makefile.com @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" @@ -83,7 +83,7 @@ SRCS= $(BEROBJS:%.o=../sources/ldap/ber/%.c) \ $(UTILOBJS:%.o=../sources/ldap/util/%.c) LIBS = $(DYNLIB) $(LINTLIB) -DYNFLAGS += $(ZNODELETE) $(BDIRECT) +DYNFLAGS += $(ZNODELETE) CPPFLAGS= $(COM_INC) $(CPPFLAGS.master) diff --git a/usr/src/lib/libmp/i386/Makefile b/usr/src/lib/libmp/i386/Makefile index 1a8e40aba8..9c62a2b7ac 100644 --- a/usr/src/lib/libmp/i386/Makefile +++ b/usr/src/lib/libmp/i386/Makefile @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" @@ -41,7 +41,7 @@ $(ROOTLIBDIR)/$(OLIBRARY) := FILEMODE= 755 $(OLIBRARY): pics/pics_mp.o libmp.so.2 $(OMAPFILE) $(CC) $(CFLAGS) -o $@ $(GSHARED) -h $(OLIBRARY) $(ZTEXT) $(ZDEFS) \ - $(ZCOMBRELOC) pics/pics_mp.o libmp.so.2 -M$(OMAPFILE) \ + $(BDIRECT) $(ZCOMBRELOC) pics/pics_mp.o libmp.so.2 -M$(OMAPFILE) \ $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) $(POST_PROCESS_SO) diff --git a/usr/src/lib/libmp/sparc/Makefile b/usr/src/lib/libmp/sparc/Makefile index 1a8e40aba8..9c62a2b7ac 100644 --- a/usr/src/lib/libmp/sparc/Makefile +++ b/usr/src/lib/libmp/sparc/Makefile @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" @@ -41,7 +41,7 @@ $(ROOTLIBDIR)/$(OLIBRARY) := FILEMODE= 755 $(OLIBRARY): pics/pics_mp.o libmp.so.2 $(OMAPFILE) $(CC) $(CFLAGS) -o $@ $(GSHARED) -h $(OLIBRARY) $(ZTEXT) $(ZDEFS) \ - $(ZCOMBRELOC) pics/pics_mp.o libmp.so.2 -M$(OMAPFILE) \ + $(BDIRECT) $(ZCOMBRELOC) pics/pics_mp.o libmp.so.2 -M$(OMAPFILE) \ $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) $(POST_PROCESS_SO) diff --git a/usr/src/lib/libnisdb/Makefile b/usr/src/lib/libnisdb/Makefile index 82c08530fd..96066c55fd 100644 --- a/usr/src/lib/libnisdb/Makefile +++ b/usr/src/lib/libnisdb/Makefile @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" @@ -145,9 +145,14 @@ ZDEFS= LDLIBS += -lnsl -lldap -lc # A number of interfaces are interposed by numerous applications, therefore -# prevent direct binding to anything in this shared object. In addition, -# libnisdb.so.1 interposes on socket(). -DYNFLAGS += $(BNODIRECT) $(ZINTERPOSE) +# prevent direct binding to anything in libnisdb. Disable libnisdb from +# directly binding to itself, but allow libnisdb to directly bind to its +# dependencies (ie. map -Bdirect -> -zdirect). Ensure lazy loading is +# established (which is enabled automatically with -Bdirect). In addition, +# libnisdb interposes on socket(), so tag this library as an interposer. +# dependencies (lazyload). +BDIRECT = +DYNFLAGS += $(BNODIRECT) $(ZINTERPOSE) $(ZDIRECT) $(ZLAZYLOAD) all := TARGET= all clean := TARGET= clean diff --git a/usr/src/lib/libproc/Makefile.com b/usr/src/lib/libproc/Makefile.com index f6f48e0531..74ccc23c36 100644 --- a/usr/src/lib/libproc/Makefile.com +++ b/usr/src/lib/libproc/Makefile.com @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" @@ -94,9 +94,12 @@ MAPFILES += mapfile-vers CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) -# All interfaces are interposable, therefore don't allow direct binding to this -# shared object. -DYNFLAGS += $(BNODIRECT) +# All interfaces are interposable, therefore don't allow direct binding to +# libproc. Disable libproc from directly binding to itself, but allow libperl +# to directly bind to its dependencies (ie. map -Bdirect -> -zdirect). Ensure +# lazy loading is established (which is enabled automatically with -Bdirect). +BDIRECT = +DYNFLAGS += $(BNODIRECT) $(ZDIRECT) $(ZLAZYLOAD) .KEEP_STATE: diff --git a/usr/src/lib/libsldap/Makefile.com b/usr/src/lib/libsldap/Makefile.com index 304965e8b2..746421900e 100644 --- a/usr/src/lib/libsldap/Makefile.com +++ b/usr/src/lib/libsldap/Makefile.com @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # #ident "%Z%%M% %I% %E% SMI" @@ -50,7 +50,6 @@ CFLAGS += $(CCVERBOSE) LOCFLAGS += -D_REENTRANT -DSUNW_OPTIONS CPPFLAGS += -I../common -I$(SRC)/lib/libldap5/include/ldap \ -I/usr/include/mps $(LOCFLAGS) -DYNFLAGS += $(BDIRECT) LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN LINTFLAGS64 += -erroff=E_BAD_PTR_CAST_ALIGN diff --git a/usr/src/lib/nsswitch/ldap/Makefile.com b/usr/src/lib/nsswitch/ldap/Makefile.com index c0bf5c6d44..9876ccc0f2 100644 --- a/usr/src/lib/nsswitch/ldap/Makefile.com +++ b/usr/src/lib/nsswitch/ldap/Makefile.com @@ -23,7 +23,7 @@ # #ident "%Z%%M% %I% %E% SMI" # -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # lib/nsswitch/ldap/Makefile.com @@ -61,7 +61,6 @@ OBJECTS = getauthattr.o \ include ../../Makefile.com CPPFLAGS += -I../../../libsldap/common -DYNFLAGS += $(BDIRECT) LDLIBS += -lsldap -lnsl -lsocket -lldap LINTFLAGS += -erroff=E_GLOBAL_COULD_BE_STATIC2 LINTFLAGS64 += -erroff=E_GLOBAL_COULD_BE_STATIC2 diff --git a/usr/src/lib/pam_modules/ldap/Makefile.com b/usr/src/lib/pam_modules/ldap/Makefile.com index 4488ed556c..a0251f7355 100644 --- a/usr/src/lib/pam_modules/ldap/Makefile.com +++ b/usr/src/lib/pam_modules/ldap/Makefile.com @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # usr/src/lib/pam_modules/ldap/Makefile.com @@ -42,7 +42,6 @@ include ../../Makefile.pam_modules LDLIBS += -lpam -lsldap -lc CPPFLAGS += -I$(SRC)/lib/libsldap/common -DYNFLAGS += $(BDIRECT) all: $(LIBS) diff --git a/usr/src/lib/passwdutil/Makefile.com b/usr/src/lib/passwdutil/Makefile.com index eabde734c5..0203e0c143 100644 --- a/usr/src/lib/passwdutil/Makefile.com +++ b/usr/src/lib/passwdutil/Makefile.com @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" @@ -63,7 +63,6 @@ LDLIBS += -lsldap -lnsl -lc CPPFLAGS += -DENABLE_SUNOS_AGING -D_REENTRANT \ -I$(SRC)/lib/libsldap/common -I$(SRC)/lib/libnsl/include CFLAGS += $(CCVERBOSE) -DYNFLAGS += $(BDIRECT) # # We depend upon a rpcgen file. Specify some additional macros diff --git a/usr/src/lib/print/libpapi-ipp/Makefile.com b/usr/src/lib/print/libpapi-ipp/Makefile.com index c141ab545e..e7c55ff51a 100644 --- a/usr/src/lib/print/libpapi-ipp/Makefile.com +++ b/usr/src/lib/print/libpapi-ipp/Makefile.com @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2006 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" @@ -52,8 +52,6 @@ CPPFLAGS += -I../../libpapi-common/common CPPFLAGS += -I../../libipp-core/common CPPFLAGS += -I../../libhttp-core/common -DYNFLAGS += $(BDIRECT) - MAPFILES = $(SRCDIR)/mapfile LDLIBS += -L$(ROOTLIBDIR) -R/usr/lib/print -lhttp-core -lmd5 diff --git a/usr/src/lib/print/libpapi-lpd/Makefile.com b/usr/src/lib/print/libpapi-lpd/Makefile.com index 9d4d6a1575..ac0f9bcada 100644 --- a/usr/src/lib/print/libpapi-lpd/Makefile.com +++ b/usr/src/lib/print/libpapi-lpd/Makefile.com @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" @@ -51,8 +51,6 @@ CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) CPPFLAGS += -I../../libpapi-common/common -DYNFLAGS += $(BDIRECT) - MAPFILES = $(SRCDIR)/mapfile LDLIBS += -lc @@ -77,7 +75,7 @@ PROG_OBJS = $(LPD_PORT_OBJS:%=pics/%) OBJS += $(PROG_OBJS) LDFLAGS.cmd = \ - $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \ + $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) $(BDIRECT) \ $(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) $(PROG): $(PROG_OBJS) diff --git a/usr/src/lib/print/libprint/Makefile.com b/usr/src/lib/print/libprint/Makefile.com index 93b6c24ed6..8d885ada45 100644 --- a/usr/src/lib/print/libprint/Makefile.com +++ b/usr/src/lib/print/libprint/Makefile.com @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "%Z%%M% %I% %E% SMI" @@ -45,7 +45,6 @@ $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) CFLAGS += $(CCVERBOSE) CPPFLAGS += -I$(SRCDIR) CPPFLAGS += -I../../head -D_REENTRANT -DYNFLAGS += $(BDIRECT) LDLIBS += -lnsl -lsocket -lc -lldap |