Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpuser DragonFly is in the Solaris camp in the "how...



details:   https://anonhg.NetBSD.org/src/rev/faf7ca6cd952
branches:  trunk
changeset: 785401:faf7ca6cd952
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Mar 12 14:03:32 2013 +0000

description:
DragonFly is in the Solaris camp in the "how to access ELF DYN at runtime"
valley of joy and love.

diffstat:

 lib/librumpuser/rumpuser_dl.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 0d6044dff9c5 -r faf7ca6cd952 lib/librumpuser/rumpuser_dl.c
--- a/lib/librumpuser/rumpuser_dl.c     Tue Mar 12 13:09:26 2013 +0000
+++ b/lib/librumpuser/rumpuser_dl.c     Tue Mar 12 14:03:32 2013 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_dl.c,v 1.14 2013/03/09 13:25:17 pooka Exp $  */
+/*      $NetBSD: rumpuser_dl.c,v 1.15 2013/03/12 14:03:32 pooka Exp $  */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -33,7 +33,7 @@
 #include "rumpuser_port.h"
 
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser_dl.c,v 1.14 2013/03/09 13:25:17 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_dl.c,v 1.15 2013/03/12 14:03:32 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -140,11 +140,11 @@
  * the address the dso is mapped at.  On Linux, they seem to contain
  * the absolute address.  I couldn't find anything definite from a quick
  * read of the standard and therefore I will not go and figure beyond ifdef.
- * On Solaris, the main object works differently ... uuuuh.
+ * On Solaris and DragonFly, the main object works differently ... uuuuh.
  */
 #if defined(__linux__)
 #define adjptr(_map_, _ptr_) ((void *)(_ptr_))
-#elif defined(__sun__)
+#elif defined(__sun__) || defined(__DragonFly__)
 #define adjptr(_map_, _ptr_) \
     (ismainobj ? (void *)(_ptr_) : (void *)(_map_->l_addr + (_ptr_)))
 #else



Home | Main Index | Thread Index | Old Index