summaryrefslogtreecommitdiff
path: root/libexec/ld.so/library_mquery.c
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2010-11-16 18:59:01 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2010-11-16 18:59:01 +0000
commitd2173e302026564b82b89f58eeba8dcd491d6d1a (patch)
tree00620870c4a520cac87dac745021ed3dfd12433c /libexec/ld.so/library_mquery.c
parent9bab4456d071758d6a2721f6f6efdb09984085f1 (diff)
Fix error message when ld.so ends up loading a different than expected
library, but other library needs the one loaded. mostly ok kurt@
Diffstat (limited to 'libexec/ld.so/library_mquery.c')
-rw-r--r--libexec/ld.so/library_mquery.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/ld.so/library_mquery.c b/libexec/ld.so/library_mquery.c
index 13160933689..fb5366b9e4e 100644
--- a/libexec/ld.so/library_mquery.c
+++ b/libexec/ld.so/library_mquery.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: library_mquery.c,v 1.37 2010/10/25 20:34:44 kurt Exp $ */
+/* $OpenBSD: library_mquery.c,v 1.38 2010/11/16 18:59:00 drahn Exp $ */
/*
* Copyright (c) 2002 Dale Rahn
@@ -38,6 +38,7 @@
#include "syscall.h"
#include "archdep.h"
#include "resolve.h"
+#include "sod.h"
#define PFLAGS(X) ((((X) & PF_R) ? PROT_READ : 0) | \
(((X) & PF_W) ? PROT_WRITE : 0) | \
@@ -280,7 +281,7 @@ retry:
object->dev = sb.st_dev;
object->inode = sb.st_ino;
object->obj_flags |= flags;
-
+ _dl_build_sod(object->load_name, &object->sod);
} else {
/* XXX no point. object is never returned NULL */
_dl_load_list_free(lowld);