home *** CD-ROM | disk | FTP | other *** search
/ Amiga GigaPD 3 / Amiga_GigaPD_v3_3of3.iso / netbsd / docs / mailinglist-archive / 1993-12 / text0417.txt < prev    next >
Encoding:
Text File  |  1993-06-25  |  1.2 KB  |  27 lines

  1. > In article <CI5G34.907@endicor.com> tsarna@endicor.com (Ty Sarna) writes:
  2. > > sun3 binaries on '040s.  (does one need to use the Sun ld.so or will the
  3. > > NetBSD ld.so work for sun3 binaries? I guess I should try it...  If the
  4. > And the answer is: NetBSD ld.so won't run sun3 dynamicly linked
  5. > programs.  I get a trapsignal() then a segfault.  This really limits the
  6. > usefulness of Sun binary compatibility, since most Sun software is
  7. > dynamicly linked :-(
  8.  
  9. The problem is more the different system call semantics than ld.so. A
  10. NetBSD process and a SunOS process use different ways to pass the
  11. system call number into the kernel. One uses d0, one passes it on the
  12. stack. To run shared SunOS binaries (which I do frequently) you make
  13. yourself a /sun directory. Then, copy SunOS ld.so into /usr/lib 
  14. (remember, NetBSD has it in /usr/libexec !), and edit /usr/lib/ld.so 
  15. and replace all references to /usr into /sun. You can then have a 
  16. /sun/lib symlink point into your SunOS /usr/lib directory with the
  17. SunOS shared libs. In the same go, also replace /etc by /sun, so
  18. ld.so.cache doesn't collide.
  19.  
  20. -Markus
  21. -- 
  22. CHUUG/EUnet Switzerland                Markus Wild
  23. Zweierstrasse 35    Tel: +41 1 291 45 80    mw@eunet.ch
  24. CH-8004 Zuerich        Fax: +41 1 291 46 42    S=mw;P=EUnet;A=EUnet;C=CH
  25.  
  26.