What all should I take care while compiling and running?

Pramod P K pra.engr@gmail.com
Tue Nov 8 05:14:00 GMT 2005

I created crosstool for arm-9tdmi-linux-gnu.  I compiled a simple program using
(My target board has already  Kernel-2.6.10 and a compiler for older
versions of gcc & glibc)

I mount:  mount -o nolock,rsize=1500,wsize=1500 -t nfs  /mnt/test

Ive simply used ./a.out.
But its giving " sh:./a.out not found "
even when there is compiled a.out in /mnt/test.

when i use:
its giving
" illegal instruction "

I can find crosstool/gcc-3.4.3-glibc-2.3.4/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/lib/ld-linux.so.2
Do u doubt crosstol build itself gone wrong? But i tested
arm-9tdmi-linux-gnu-objdump;  works properly.

What all should  I take care while compiling a program and running a
program in the TARGET?
Plz reply with all the possibilities where the thing gone wrong.

Thanx n regards,
  PRAMOD P. K., <pra.engr@gmail.com>

  CDMA: 91- 9242195490.

More information about the Gcc-help mailing list