RetroForum Welcome, Guest. Please login or register.
March 11, 2010, 11:54:43 PM
Home Help Search Calendar Login Register

RetroForth Discussion  |  Older Boards  |  Bugs  |  Topic: Bug? in LoadLibraryAs for Linux version « previous next »
Pages: 1 Go Down Print
Author Topic: Bug? in LoadLibraryAs for Linux version  (Read 1639 times)
lamal
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2

I'm not a llama!


View Profile
Bug? in LoadLibraryAs for Linux version
« on: February 18, 2005, 01:15:48 PM »

The call to dlopen  in LoadLibraryAs  should have two parameters on the stack.
The one missing is the flag for the mode. It can be RTLD_LAZY or RTLD_NOW.

Logged
Charles Childers
Administrator
Sr. Member
*****

Karma: +2/-0
Offline Offline

Posts: 745


View Profile WWW
Re:Bug? in LoadLibraryAs for Linux version
« Reply #1 on: February 18, 2005, 11:52:59 PM »

What are the values of RTLD_LAZY or RTLD_NOW? (I didn't see this online, and I have no headers for libdl.so installed)
Logged
lamal
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2

I'm not a llama!


View Profile
Re:Bug? in LoadLibraryAs for Linux version
« Reply #2 on: February 19, 2005, 09:26:17 AM »

From glicbc-2.3.2/sysdeps/generic/bits/dlfcn.h :

-----------

/* The MODE argument to `dlopen' contains one of the following: */
#define RTLD_LAZY       0x00001 /* Lazy function call binding.  */
#define RTLD_NOW        0x00002 /* Immediate function call binding.  */
#define RTLD_BINDING_MASK   0x3 /* Mask of binding time value.  */
#define RTLD_NOLOAD     0x00004 /* Do not load the object.  */

/* If the following bit is set in the MODE argument to `dlopen',
   the symbols of the loaded object and its dependencies are made
   visible as if the object were linked directly into the program.  */
#define RTLD_GLOBAL     0x00100

/* Unix98 demands the following flag which is the inverse to RTLD_GLOBAL.
   The implementation does this by default and so we can define the
   value to zero.  */
#define RTLD_LOCAL      0

/* Do not delete object when closed.  */
#define RTLD_NODELETE   0x01000

----------------------

Info may also be found in' Program Library HOWTO'

Logged
Charles Childers
Administrator
Sr. Member
*****

Karma: +2/-0
Offline Offline

Posts: 745


View Profile WWW
Re: Bug? in LoadLibraryAs for Linux version
« Reply #3 on: June 12, 2005, 05:51:49 AM »

This has finally been fixed in the latest build of RetroForth 8.0
Logged
Pages: 1 Go Up Print 
RetroForth Discussion  |  Older Boards  |  Bugs  |  Topic: Bug? in LoadLibraryAs for Linux version « previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Valid XHTML 1.0! Valid CSS!