Re: gcc ld error

2009-10-21 Thread Ian Lance Taylor
daniel tian writes: > I just wanna get the argment passed to ld, when I could debug the > ld with gdb. > I run the command the > rice-elf-gcc helloworld.c -v > But I couldn't get the parameter passed to ld. > and I don't know what the relationship between "collect2" and >

gcc ld error

2009-10-21 Thread daniel tian
Hi, everyone: I have ported the gcc, newlib and binutils to my new risc target. But when I write a simple program helloworld.c: #include int main(void) { printf("Hello World!!!\n"); return 0; } run the command like this: rice-elf-gcc helloworld.c