You can use
--info inputs to identify the
source of some link errors. For example, you can search the output
to locate undefined references from library objects or multiply
defined symbols caused by retargeting some library functions and
not others. Search backwards from the end of this output to find
and resolve link errors.
You can also use the
--verbose option to
output similar text with additional information on the linker operations.