Subject: Re: Question about text segments and NetBSD and Solaris 2
To: None <Vasanth_Kanchan@s3.com>
From: David Edelsohn <email@example.com>
Date: 07/25/1997 17:30:41
>>>>> Vasanth Kanchan writes:
Vasanth> After looking at the code it seems that the exec system call does not
Vasanth> check for previous exec's of the same file. So for 5 exec's of a
Vasanth> program there will be 5 X sizeof(.text). This will be somewhat reduced
Vasanth> if one uses shared libraries.
The sharing does not occur at the level of exec() and the kernel
loader. At the level of the VMM and paging subsystem, the duplication
should be noticed if the executable is ZMAGIC.