Re: Do 'fork' copies the "Code" Memory space?
From: Måns Rullgård (mru_at_kth.se)
Date: 01/26/04
- Next message: Måns Rullgård: "Re: "Randomzing" filenames during compilation"
- Previous message: Andrei Voropaev: "Re: Do 'fork' copies the "Code" Memory space?"
- In reply to: Andrei Voropaev: "Re: Do 'fork' copies the "Code" Memory space?"
- Next in thread: Måns Rullgård: "Re: Do 'fork' copies the "Code" Memory space?"
- Reply: Måns Rullgård: "Re: Do 'fork' copies the "Code" Memory space?"
- Reply: Baron: "Re: Do 'fork' copies the "Code" Memory space?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 26 Jan 2004 11:13:55 +0100
Andrei Voropaev <avorop@mail.ru> writes:
> Not really. There's no need to have 2 copies of DLL. I better say .so
> library, since I don't know for sure about DLL. The code would be stored
> in the same physical memory. But different processes may access that
> code at different virtual addresses.
This works only if the shared library uses position independent code.
If it doesn't, all memory references in the code will have to be
adjusted to point to the correct places. The library will have a
relocation table listing all instructions using absolute addresses
that need to be checked.
-- Måns Rullgård mru@kth.se
- Next message: Måns Rullgård: "Re: "Randomzing" filenames during compilation"
- Previous message: Andrei Voropaev: "Re: Do 'fork' copies the "Code" Memory space?"
- In reply to: Andrei Voropaev: "Re: Do 'fork' copies the "Code" Memory space?"
- Next in thread: Måns Rullgård: "Re: Do 'fork' copies the "Code" Memory space?"
- Reply: Måns Rullgård: "Re: Do 'fork' copies the "Code" Memory space?"
- Reply: Baron: "Re: Do 'fork' copies the "Code" Memory space?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|