This is the mail archive of the
mailing list for the GCC project.
- From: Niklaus <niklaus at gmail dot com>
- To: "CrossGCC List" <crossgcc at sourceware dot org>
- Cc: binutils at sourceware dot org, gcc at gcc dot gnu dot org
- Date: Mon, 12 Jun 2006 18:55:48 +0600
- Subject: sparc elf
I have been trying to build sparc elf executables from i386. I got
gcc,binutils and newlibc and configured them with target=sparc-elf .
Now when i got gcc and binutils working , i wrote a small program
i compiled it using sparc-elf-gcc -c test.c.
./sparc-elf-ld --entry=main test.o -o a.out
when i executed a.out on sparc machine it segfaulted and dumped core.
Why does this happen. This is a very small executable and everything
is static. Where i am i doing wrong.