This is the mail archive of the
mailing list for the binutils project.
Re: Linking error
naga raj <firstname.lastname@example.org> writes:
>>> ../../empty_cpp_bsp_0/lib/liblocal.a(close.o): In function `close':
>>> /proj/empty_cpp_bsp_0//libsrc/src/close.c:50: multiple definition of `close'
>>> first defined here
> From map file I found that close() function is called from libc of
> toolchain and not from my local library. I dont know why it is still
> refering close in local library.
Something is causing both liblocal.a(close.o) and
libc.a(lib_a-sysclose.o) to be included. The map file should tell for
each object why it was pulled in to the link.