Re: sparc elf

2006-06-12 Thread Jim Wilson
Niklaus wrote: when i executed a.out on sparc machine it segfaulted and dumped core. On what kind of sparc machine? It sounds like you tried to run the code on a sparc-solaris or sparc-linux machine, which won't work. sparc-elf code can only be run on bare hardware. Try building a

Re: sparc elf

2006-06-12 Thread Martin Guy
2006/6/12, Niklaus <[EMAIL PROTECTED]>: int main() { return 3; } 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. I guess 'cos you set entrypoint=main instead of __start

sparc elf

2006-06-12 Thread Niklaus
Hi, 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 test.c: int main() { return 3; } i compiled it using sparc-elf-gcc -c test.c. ./sparc-elf