Help!

safely shifting task address space

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> System Development RSS
Next:  md5sum mistery  
Author Message
Balban
External


Since: Oct 15, 2009
Posts: 1



PostPosted: Thu Oct 15, 2009 3:16 am    Post subject: safely shifting task address space
Archived from groups: comp>os>linux>development>system (more info?)

Hi,

Is it possible to shrink/shift virtual address space of a process
without breaking it? I am guessing that executables with a global
offset table compiled as position-independent can do this. I also have
a feeling that most elf binaries go into this category, in the name of
being portable. Would that be a correct assumption? What are the
caveats I need to think about?

Thanks,

Bahadir
Back to top
David Schwartz
External


Since: Apr 29, 2007
Posts: 57



PostPosted: Thu Oct 15, 2009 11:09 am    Post subject: Re: safely shifting task address space [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Oct 15, 10:36 am, Joe Pfeiffer <pfeif....TakeThisOut@cs.nmsu.edu> wrote:

> But... why?

Yeah, really. Virtual memory is not really a scarce resource.

DS
Back to top
Joe Pfeiffer
External


Since: Dec 21, 2004
Posts: 94



PostPosted: Thu Oct 15, 2009 11:36 am    Post subject: Re: safely shifting task address space [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Balban <bilgehan.balban RemoveThis @gmail.com> writes:

> Hi,
>
> Is it possible to shrink/shift virtual address space of a process
> without breaking it? I am guessing that executables with a global
> offset table compiled as position-independent can do this. I also have
> a feeling that most elf binaries go into this category, in the name of
> being portable. Would that be a correct assumption? What are the
> caveats I need to think about?

Of course, you don't mean the question exactly as stated, since the
process virtual address space goes from 0 to a limit defined by the
number of address bits available. Presumably you mean moving segments
around or shrinking them.

"Possible" is one of those words that is far too broad. You certainly
could identify calls in to a library and effectively unwind the work
done by dlopen(), for instance.

But... why?
--
As we enjoy great advantages from the inventions of others, we should
be glad of an opportunity to serve others by any invention of ours;
and this we should do freely and generously. (Benjamin Franklin)
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> System Development All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum