home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / hp / 12679 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.7 KB  |  44 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!wupost!uwm.edu!spool.mu.edu!nigel.msen.com!sdd.hp.com!hp-col!fc.hp.com!jsm
  3. From: jsm@fc.hp.com
  4.  (John Marvin)
  5. Subject: Re: mmap on HP-UX 9.0 on s700
  6. Sender: news@fc.hp.com (news daemon)
  7. Message-ID: <BxDsMo.GMF@fc.hp.com>
  8. Date: Sun, 8 Nov 1992 05:01:36 GMT
  9. References: <FRANL.92Nov7210901@draco.centerline.com>
  10. Organization: Hewlett-Packard Workstation Kernel, Ft. Collins, CO
  11. X-Newsreader: TIN [version 1.1.1 PL6]
  12. Lines: 30
  13.  
  14. Fran Litterio (franl@centerline.com) wrote:
  15. : jsm@fc.hp.com (John Marvin) writes:
  16. : > Fran Litterio (franl@centerline.com) wrote:
  17. : > : If this is so, then how is dld.sl guaranteed to be able to map the
  18. : > : text/data of mylib.sl at the same VM address for all programs which
  19. : > : were linked against it?
  20. : > 
  21. : > It doesn't. The data is mapped into the second quadrant, which is private
  22. : > (not shared with other processes). The text is mapped into the 3rd or 4th
  23. : > quadrant, which is shared with all processes. But when it is mapped by
  24. : > the first process that uses it, it can be placed anywhere within the 3rd
  25. : > or 4th quadrant.
  26. : Don't you mean "anywhere within the 3rd or 4th quadrant that isn't
  27. : already allocated to a shared library that another process has
  28. : mapped"?
  29. : So if libfoo.sl's text pages are mapped for the very first time by any
  30. : process, they will not be assigned virtual addresses that are used by
  31. : libbar.sl's text pages in another process that was started a minute
  32. : earlier?  Even if the program that maps libfoo.sl does not map
  33. : libbar.sl?
  34.  
  35. Yes, exactly. But the point I was trying to make was that depending on the
  36. order of invocation of various shared libraries, a shared library can be
  37. mapped anywhere within the 3rd or 4th quadrant.
  38.  
  39.     John Marvin
  40.     jsm@fc
  41.