Problem in assembly and linking(gcc-4.0)
Ramana Radhakrishnan
ramana.radhakrishnan@codito.com
Sun May 22 20:18:00 GMT 2005
> gcc -S file.c
> as -o file.o file.s
> ld -o exefile file.o /usr/lib/crt1.o /usr/lib/crti.o -lc /usr/lib/crtn.o
> -dynamic /lib/ld-linux.so.2
* You might also do gcc file.c .But well, see below :
>
> The executable produced above works fine.
>
> This would mean that there is some problem occuring while assembling or
> linking in regualr commands used by gcc. is there a solution for this ?
* Fireup gdb. ( http://sources.redhat.com/gdb )
* run your program
* Look at reason for segfault.
Also this list is for devel of gcc and not devel using gcc.
Please use gcc-help instead if you have a problem with using
gcc.
cheers
Ramana
--
Ramana Radhakrishnan
GNU Tools
codito ergo sum (www.codito.com)
More information about the Gcc
mailing list