Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumphijack Remember that dlsym() tends to fail on Pow...



details:   https://anonhg.NetBSD.org/src/rev/f34f83ef833b
branches:  trunk
changeset: 340181:f34f83ef833b
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Aug 25 13:50:19 2015 +0000

description:
Remember that dlsym() tends to fail on PowerPC during init (or at least
tended), so call rumphijack_dlsym() instead to be safe.

diffstat:

 lib/librumphijack/hijack.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e967c0707afd -r f34f83ef833b lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c        Tue Aug 25 13:46:23 2015 +0000
+++ b/lib/librumphijack/hijack.c        Tue Aug 25 13:50:19 2015 +0000
@@ -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 @@
                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);
 }



Home | Main Index | Thread Index | Old Index