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

2005-05-22 Thread Ramana Radhakrishnan
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 as

Problem in assembly and linking(gcc-4.0)

2005-05-21 Thread Virender Kashyap
Hi I am working on gcc-4.0. I have edited some files in code and the remaking of gcc works well, and even files compile with it. But when i try to run a compiled program it gives segmentaion fault. I checked that assembly code produced is fine and i just compiled file to file.s and then ass