Anthony Drake wrote: > Ken, Joe, > > Good news: hello world program compiled with CLFS cross compiler runs > on one of the targets that has a 2.6 kernel installed. > > It will only run when compiled with the -static switch to gcc, and > it's 2.5M in size: > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>: [~]#ls -al > drwx------ 2 v4 users 1024 Jul 9 14:33 . > drwxr-xr-x 3 root root 1024 May 22 16:55 .. > -rw------- 1 v4 users 88 Jul 9 14:26 .bash_history > -rwxr-xr-x 1 v4 users 2600205 Jul 10 2008 hello > -rwxr-xr-x 1 v4 users 3022 Jul 10 2008 helloworld > -rwxr-xr-x 1 v4 users 12143 Jul 10 2008 hw > > hello is linked with -static: > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> [~]# ./hello > Hello world > > hw is linked without -static: > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> [~]# ./hw > -bash: ./hw: No such file or directory
This is most likely because your prog has the wrong path of ld.so embedded in it. If you get a target binary, run this command on it and compare it to your shared hello world binary. readelf -l [binary path] | grep interpreter _______________________________________________ Clfs-support mailing list [email protected] http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
