Re: Dynamic linking is go (again)
Izumi Tsutsui <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.sh3,gmane.os.netbsd.ports.dreamcast |
|---|---|
| Message-ID | <[email protected]> |
In article <[email protected]> I wrote: > Hmm, both executables work fine with ld.elf_so and libc.so.12.100 > built by my cross toolchain. I'll check libgcc.a and linker setting etc. Ok, I found the problem. We have to pass "-e __start" to gcc(1) on linking binaries if "-nostdlib" is specified. (I don't know how this should be handled, though) Now my DC works on multiuser with fully dynamic linked userland ;-) --- % ls -l /bin/sh -r-xr-xr-x 1 root wheel 106948 Jul 5 07:50 /bin/sh % ldd /bin/sh /bin/sh: -ledit.2 => /lib/libedit.so.2 -ltermcap.0 => /lib/libtermcap.so.0 -lc.12 => /lib/libc.so.12 % /bin/sh $ uname -pm dreamcast sh3el $ ldd /usr/bin/ssh /usr/bin/ssh: -lkrb5.18 => /usr/lib/libkrb5.so.18 -lkafs.5 => /usr/lib/libkafs.so.5 -lasn1.6 => /usr/lib/libasn1.so.6 -lkrb.5 => /usr/lib/libkrb.so.5 -lcom_err.4 => /usr/lib/libcom_err.so.4 -lroken.12 => /usr/lib/libroken.so.12 -lz.0 => /lib/libz.so.0 -lcrypto.1 => /lib/libcrypto.so.1 -lc.12 => /lib/libc.so.12 $ ssh localhost Enter passphrase for key '/home/tsutsui/.ssh/id_rsa': Last login: Sat Jul 5 08:45:08 2003 from localhost NetBSD 1.6T (DIGNITY) #286: Tue Jun 17 00:41:25 JST 2003 Welcome to NetBSD! Sat Jul 5 08:46:31 JST 2003 % --- Izumi Tsutsui [email protected]