delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/21/08:11:17

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
To: "Frans Rossouw" <fer AT ucs DOT co DOT za>
Cc: "Cygwin" <cygwin AT cygwin DOT com>
Subject: Re: dlopen & dlsym
References: <004601c0ae19$0d16fe40$db011fac AT fer DOT ucs DOT co DOT za>
From: Benjamin Riefenstahl <Benjamin DOT Riefenstahl AT ision DOT net>
Date: 21 Mar 2001 14:10:02 +0100
In-Reply-To: "Frans Rossouw"'s message of "Fri, 16 Mar 2001 15:00:18 +0200"
Message-ID: <uitl3z2s5.fsf@work1.work.maz.net>
Lines: 31
User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7
MIME-Version: 1.0

Hi Frank,


"Frans Rossouw" <fer AT ucs DOT co DOT za> writes:
> OK, I have a question here (Yes again)
> 
> Whether I use
>  handle = dlopen (NULL, RTLD_LAZY);
>  handle = dlopen ("absolute path", RTLD_LAZY);
>  handle = (void *) LoadLibrary ("absolute path");
> handle ALWAYS comes back as 0x400000 (as per GDB & log strings)
> 
> Can anyone tell me what's going on?

If by "absolute path" you mean the path to the application executable,
than that's expected behaviour.  Applications always specify
0x00400000 as their preferred load address.  In general modules may be
relocated because their preferred load address conflicts with the
address of some other module.  But because no user space DLLs are
loaded before the application, their preference is always respected.


so long, benny
-- 
ISION Internet AG
Benjamin Riefenstahl
mailto:benjamin DOT riefenstahl AT ision DOT net

Harburger Schlossstr. 1
D-21079 Hamburg
http://www.ision.net


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019