]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - ld/ldmain.c
Scan all input files for symbol reference warning
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 26 Mar 2014 19:18:59 +0000 (12:18 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 27 Mar 2014 15:12:17 +0000 (08:12 -0700)
commit4c6d802e592b3762a149c343bc5722e065e57841
tree6e087f1b316c6f96a43f810d987bd87e3ead7e5a
parent6a631e86cfc2ddd979f9dc4b4da01133d9d3610f
Scan all input files for symbol reference warning

This patch scans all input files for symbol reference warning if the
symbol reference doesn't exist in the current input file.

ld/

PR ld/16756
* ldmain.c (symbol_warning): New function.
(warning_callback): Use it.  Scan all input files for a reference
to SYMBOL.

ld/testsuite/

PR ld/16756
* ld-plugin/lto.exp: Expect filename and line number for PR
ld/12760 test.
ld/ChangeLog
ld/ldmain.c
ld/testsuite/ChangeLog
ld/testsuite/ld-plugin/lto.exp