Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jan 1999 18:51:50 +0100 (MET)
From:      Roland Jesse <jesse@prinz-atm.CS.Uni-Magdeburg.De>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   RTLD_GLOBAL in dlopen(3)
Message-ID:  <13967.44598.764504.512958@knecht>

next in thread | raw e-mail | index | archive | help
Hello,

I am in the process of porting Bamboo (http://watsen.net/Bamboo/) to
FreeBSD. While doing so, I realized that the RTLD_GLOBAL flag for
dlopen() does not exist on FreeBSD (only RTLD_LAZY, RTLD_NOW, and
RTLD_NEXT do). It seems to exist on a couple other Unix OS. It does at
least on Solaris, Irix, and Linux.

The dlopen manpage on Solaris says:

     To determine the scope of visibility for symbols loaded with
     a  dlopen() invocation, the mode parameter should be bitwise
     or'ed with one of the following values:

     RTLD_GLOBAL       The  object's  global  symbols  are   made
                       available for the relocation processing of
                       any other  object.   In  addition,  symbol
                       lookup  using dlopen(0, mode) and an asso-
                       ciated dlsym(), allows objects loaded with
                       RTLD_GLOBAL to be searched.

Is there a counterpart of it that can be used to achieve the same
effect (i.e. making symbols accessible to everyone without any
explicit calls)?

Any hints in the right direction are appreciated.

Regards,
	Roland
-- 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13967.44598.764504.512958>