How to pre-relocate shared libraries at a preferred address?
From: Vincent Turcotte (winbloodreg_at_yahoo.ca)
Date: 08/29/03
- Next message: Xyerp: "Re: (newbie) play video file in linux"
- Previous message: Xyerp: "Re: file permission"
- Next in thread: Paul Pluzhnikov: "Re: How to pre-relocate shared libraries at a preferred address?"
- Reply: Paul Pluzhnikov: "Re: How to pre-relocate shared libraries at a preferred address?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 29 Aug 2003 10:16:39 -0400
Hi, we want to be able to load our C++ shared libraries at a preferred
address each time since we have a memory mapped file containing pointers
to functions (persistent object database) that are in shared libraries.
The memory mapped file sits there (after a mapping of C++ objects) and
we want to load our application at anytime, but we need to be sure that
the shared objects are loaded at the exact same address each time.
Failing that requirement, our memory mapped file calls functions in
unknown address thus crashing big time.
We are able to do this on our Tru64 Unix / Alpha platform with the use
of the so_locations file. How can we do this on Linux? What are the
options we need to pass to the linker?
We are using gcc 3.2.3 for compilation and linking.
Thanks
Vincent Turcotte
- Next message: Xyerp: "Re: (newbie) play video file in linux"
- Previous message: Xyerp: "Re: file permission"
- Next in thread: Paul Pluzhnikov: "Re: How to pre-relocate shared libraries at a preferred address?"
- Reply: Paul Pluzhnikov: "Re: How to pre-relocate shared libraries at a preferred address?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|