View Single Post

   
  #3 (permalink)  
Old 01-04-2008, 10:05 PM
desury
 
Posts: n/a
Default Re: AIX 4.3.3 et ldd

Thank you very much. I understood
Patrice

TPaul Pluzhnikov wrote:
> Patrice wrote:
>
>> quand j'utilise ldd sur un executable ou un .so
>> je ne peux plus faire de strip, ou ecraser le fichier
>> le fichier est occupé, je ne peux que le supprimer

>
>
> You may get a better answer if you ask in English.
>
> The "ldd" you attached "load"s the exe or .so as if it was a shared
> library. Now, it is a well known (mis)feature of AIX: shared libraries
> are "sticky" -- they are (by default) loaded into a shared memory
> segment, and stay there, until the system is rebooted or "slibclean" is
> run. [This is a nice optimization for production systems -- it makes
> subsequent loading much faster, but it is a misfeature for development
> systems].
>
> The "canonical" way to prevent this behaviour is "chmod o-rwx exe" --
> since the exe can't be read by "others", it will be loaded into private
> segment instead of the shared one, and will not be sticky anymore.
>
> Cheers,
>


Reply With Quote