This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem in assembly and linking(gcc-4.0)


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]