On Thu, Aug 02, 2001 at 11:21:59AM -0700, Daniel Jacobowitz wrote: > On Thu, Aug 02, 2001 at 12:22:38PM -0600, Bradley C. Midgley wrote: > > On some architectures, it will work anyway; also, the shared object > could be used for some other purpose besides dynamic linking (i > think?). You've just got to know what you're doing.
It works, if you consider not actually sharing the shared object is working. =) On that other architecture, when a non-PIC shared object is loaded, the relocs are fixed in-place, i.e., the fixups are written to read-only pages that are normally shared between processes. Suddenly, you have code pages that a) just got paged in from disk, b) aren't shared, and c) have to be written to swap instead of just dropped and reread from the fs. > It can also be a little tricky to tell. I think this is the main reason. dave...