[SLUG] Controlling address space layout

2005-01-17 Thread Benno
Hi all, Does anyone know how to control the address space layout of a dynamically linked program in linux? Alternatively, are dynamically linked libraries always going to be in the same place? E.g: When compling a simple hello world program, and running it I end up with a memory map like so:

Re: [SLUG] Controlling address space layout

2005-01-17 Thread Dave Airlie
dynamically linked program in linux? Alternatively, are dynamically linked libraries always going to be in the same place? once upon a time maybe.. with all these prelink and random patches floating about it really depends on what kernel you are running.. It would be convenient for my

Re: [SLUG] Controlling address space layout

2005-01-17 Thread James Gregory
On Tue, 2005-01-18 at 02:45 +, Dave Airlie wrote: dynamically linked program in linux? Alternatively, are dynamically linked libraries always going to be in the same place? once upon a time maybe.. with all these prelink and random patches floating about it really depends on what

Re: [SLUG] Controlling address space layout

2005-01-17 Thread Ian Wienand
On Tue, Jan 18, 2005 at 01:28:51PM +1100, Benno wrote: It would be convenient for my current project if there was some way to specify where in VM the dynamic libraries ended up. You can use prelink to put shared libraries to specific virtual addresses with the --reloc-only option. -i [EMAIL