This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problem in assembly and linking(gcc-4.0)
- From: Ramana Radhakrishnan <ramana dot radhakrishnan at codito dot com>
- To: Virender Kashyap <virenk at cse dot iitb dot ac dot in>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 22 May 2005 17:31:43 +0530
- Subject: Re: Problem in assembly and linking(gcc-4.0)
- References: <Pine.LNX.4.61.0505212329270.13998@mars.cse.iitb.ac.in>
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)