Module Name: src
Committed By: pooka
Date: Tue Aug 25 13:50:19 UTC 2015
Modified Files:
src/lib/librumphijack: hijack.c
Log Message:
Remember that dlsym() tends to fail on PowerPC during init (or at least
tended), so call rumphijack_dlsym() instead to be safe.
To generate a diff of this commit:
cvs rdiff -u -r1.118 -r1.119 src/lib/librumphijack/hijack.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librumphijack/hijack.c
diff -u src/lib/librumphijack/hijack.c:1.118 src/lib/librumphijack/hijack.c:1.119
--- src/lib/librumphijack/hijack.c:1.118 Tue Aug 25 13:45:00 2015
+++ src/lib/librumphijack/hijack.c Tue Aug 25 13:50:19 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: hijack.c,v 1.118 2015/08/25 13:45:00 pooka Exp $ */
+/* $NetBSD: hijack.c,v 1.119 2015/08/25 13:50:19 pooka Exp $ */
/*-
* Copyright (c) 2011 Antti Kantee. All Rights Reserved.
@@ -34,7 +34,7 @@
#include <rump/rumpuser_port.h>
#if !defined(lint)
-__RCSID("$NetBSD: hijack.c,v 1.118 2015/08/25 13:45:00 pooka Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.119 2015/08/25 13:50:19 pooka Exp $");
#endif
#include <sys/param.h>
@@ -2235,7 +2235,7 @@ mmap(void *addr, size_t len, int prot, i
return MAP_FAILED;
}
if (__predict_false(host_mmap == NULL)) {
- host_mmap = dlsym(RTLD_NEXT, "mmap");
+ host_mmap = rumphijack_dlsym(RTLD_NEXT, "mmap");
}
return host_mmap(addr, len, prot, flags, fd, offset);
}