The _yp_bind() function and the _ypbindlist, _yp_domain, and
_yplib_timeout variables are no longer exported in Symbols.list, so just
declare them as hidden so they don't require GOT relocations.
ok?
Philip Guenther
Index: yp/yp_bind.c
===================================================================
RCS file: /data/src/openbsd/src/lib/libc/yp/yp_bind.c,v
retrieving revision 1.26
diff -u -p -r1.26 yp_bind.c
--- yp/yp_bind.c 26 Nov 2015 07:26:50 -0000 1.26
+++ yp/yp_bind.c 20 May 2016 09:12:19 -0000
@@ -257,7 +257,6 @@ _yp_unbind(struct dom_binding *ypb)
ypb->dom_client = NULL;
ypb->dom_socket = -1;
}
-DEF_WEAK(_yp_unbind);
int
yp_bind(const char *dom)
Index: yp/ypinternal.h
===================================================================
RCS file: /data/src/openbsd/src/lib/libc/yp/ypinternal.h,v
retrieving revision 1.10
diff -u -p -r1.10 ypinternal.h
--- yp/ypinternal.h 14 Sep 2015 12:09:35 -0000 1.10
+++ yp/ypinternal.h 20 May 2016 09:11:50 -0000
@@ -44,12 +44,13 @@ struct dom_binding {
#define BINDINGDIR "/var/yp/binding"
#define YPBINDLOCK "/var/run/ypbind.lock"
+__BEGIN_HIDDEN_DECLS
extern struct dom_binding *_ypbindlist;
extern char _yp_domain[HOST_NAME_MAX+1];
extern int _yplib_timeout;
void _yp_unbind(struct dom_binding *);
+__END_HIDDEN_DECLS
+
int _yp_check(char **);
-PROTO_NORMAL(_yp_unbind);
PROTO_NORMAL(_yp_check);
-