error message while building.
undefined reference to `link'

In function `_link_r'

powerpc-elf/lib/libm.a
powerpc-elf/lib/libc.a
powerpc-elf/lib/libsim.a
/lib/gcc/powerpc-elf/4.1.1/libgcc.a