On Wed, Jan 21, 2015 at 5:03 PM, Ziqiang Patrick Huang <[email protected]> wrote: > > Hi Stefan, > > I copied libc.so from musl-cross/musl-master/lib to > arch/openrisc/support/initramfs/ > > ./hello still gives me ./hello not found, seems like it's still not > recognizing the executable file. > > How should I run it ? >
Sorry, I should probably have been more explicit, you should copy the .so's into arch/openrisc/support/initramfs/lib/ And you will also need to create a symlink called ld-musl-or1k.so.1 that points to libc.so. This is an example how the lib dir can look like: ~ # ls -al /lib/ total 3208 drwxrwxr-x 2 1000 1000 540 Jan 10 2015 . drwxrwxrwt 15 root 0 480 Jan 2 03:50 .. lrwxrwxrwx 1 1000 1000 7 Jan 10 2015 ld-musl-or1k.so.1 -> libc.so -rwxr-xr-x 1 1000 1000 991 Jan 9 2015 libatomic.la lrwxrwxrwx 1 1000 1000 18 Jan 10 2015 libatomic.so -> libatomic.so.1.1.0 lrwxrwxrwx 1 1000 1000 18 Jan 10 2015 libatomic.so.1 -> libatomic.so.1.1.0 -rwxr-xr-x 1 1000 1000 82058 Jan 9 2015 libatomic.so.1.1.0 -rwxr-xr-x 1 1000 1000 1049654 Jan 7 2015 libc.so lrwxrwxrwx 1 1000 1000 13 Jan 10 2015 libgcc_s.so -> libgcc_s.so.1 -rw-r--r-- 1 1000 1000 372527 Jan 9 2015 libgcc_s.so.1 -rwxr-xr-x 1 1000 1000 968 Jan 9 2015 libgomp.la lrwxrwxrwx 1 1000 1000 16 Jan 10 2015 libgomp.so -> libgomp.so.1.0.0 lrwxrwxrwx 1 1000 1000 16 Jan 10 2015 libgomp.so.1 -> libgomp.so.1.0.0 -rwxr-xr-x 1 1000 1000 428186 Jan 9 2015 libgomp.so.1.0.0 -rw-r--r-- 1 1000 1000 164 Jan 9 2015 libgomp.spec -rwxr-xr-x 1 1000 1000 961 Jan 9 2015 libssp.la lrwxrwxrwx 1 1000 1000 15 Jan 10 2015 libssp.so -> libssp.so.0.0.0 lrwxrwxrwx 1 1000 1000 15 Jan 10 2015 libssp.so.0 -> libssp.so.0.0.0 -rwxr-xr-x 1 1000 1000 26350 Jan 9 2015 libssp.so.0.0.0 -rwxr-xr-x 1 1000 1000 943 Jan 9 2015 libssp_nonshared.la -rwxr-xr-x 1 1000 1000 988 Jan 9 2015 libstdc++.la lrwxrwxrwx 1 1000 1000 19 Jan 10 2015 libstdc++.so -> libstdc++.so.6.0.20 lrwxrwxrwx 1 1000 1000 19 Jan 10 2015 libstdc++.so.6 -> libstdc++.so.6.0.20 -rwxr-xr-x 1 1000 1000 1219766 Jan 9 2015 libstdc++.so.6.0.20 -rw-r--r-- 1 1000 1000 2352 Jan 9 2015 libstdc++.so.6.0.20-gdb.py -rwxr-xr-x 1 1000 1000 922 Jan 9 2015 libsupc++.la -rw-r--r-- 1 1000 1000 842 Jul 19 2014 musl-gcc.specs Stefan _______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
