This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc ld error
- From: daniel tian <daniel dot xntian at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Cc: peng dot zheng at mavrixtech dot com
- Date: Wed, 21 Oct 2009 23:45:51 +0800
- Subject: gcc ld error
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 <stdio.h>
int main(void)
{
printf("Hello World!!!\n");
return 0;
}
run the command like this:
rice-elf-gcc helloworld.c
error occurred from ld which indicates some undefine reloc names.
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
"ld". It seems they do have some connections between them.
Thanks very much.
Best wishes.
daniel