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