--verbose linker option
Prints detailed information about the link operation, including the objects that are included and the libraries from which they are taken.
This output is particular useful for tracing undefined symbols reference or multiply defined symbols. Because this output is typically quite long, you might want to use this command with the --list=filename command to redirect the information to filename .
Use --verbose to output diagnostics to stdout.