diff options
author | 2012-08-16 20:38:13 +0000 | |
---|---|---|
committer | 2012-08-16 20:38:13 +0000 | |
commit | ccd5238a63fc9ae9b12c98bf727fda4b3a07e81d (patch) | |
tree | 5ed154d4aa2d141416443e17dd3ca65e0d3ada7d | |
parent | turd polish: use LDSTATIC=${STATIC} instead of LDFLAGS+=-static (diff) | |
download | wireguard-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.c | 2 |
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); |