summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2012-08-16 20:38:13 +0000
committermatthew <matthew@openbsd.org>2012-08-16 20:38:13 +0000
commitccd5238a63fc9ae9b12c98bf727fda4b3a07e81d (patch)
tree5ed154d4aa2d141416443e17dd3ca65e0d3ada7d
parentturd polish: use LDSTATIC=${STATIC} instead of LDFLAGS+=-static (diff)
downloadwireguard-openbsd-ccd5238a63fc9ae9b12c98bf727fda4b3a07e81d.tar.xz
wireguard-openbsd-ccd5238a63fc9ae9b12c98bf727fda4b3a07e81d.zip
Use dlopen("ld.so") instead of dlopen("/usr/libexec/ld.so") so we get
a reference to the already loaded ld.so instead of loading another instance.
-rw-r--r--regress/libexec/ld.so/randomdata/ld.so-cookie/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/libexec/ld.so/randomdata/ld.so-cookie/test.c b/regress/libexec/ld.so/randomdata/ld.so-cookie/test.c
index a863637b52b..89753ff2540 100644
--- a/regress/libexec/ld.so/randomdata/ld.so-cookie/test.c
+++ b/regress/libexec/ld.so/randomdata/ld.so-cookie/test.c
@@ -9,7 +9,7 @@ main()
long *guardptr;
long guard;
- dso = dlopen("/usr/libexec/ld.so", RTLD_LOCAL|RTLD_LAZY);
+ dso = dlopen("ld.so", RTLD_LOCAL|RTLD_LAZY);
assert(dso != NULL);
guardptr = dlsym(dso, "__guard");
assert(guardptr != NULL);