commit | 94d401b8b88a76b1372ce44e805516756a4f737b | [log] [tgz] |
---|---|---|
author | H.J. Lu <hjl.tools@gmail.com> | Wed Jul 04 06:27:58 2018 -0700 |
committer | H.J. Lu <hjl.tools@gmail.com> | Wed Jul 04 06:29:13 2018 -0700 |
tree | 62f580d5a657896a602fad555ea6b11c7cdc48fa | |
parent | b14b7ff14ffe911ec562004304841cf7d2775a19 [diff] |
ld: Set non_ir_ref_regular for --undefined SYMBOL Set non_ir_ref_regular to TRUE for symbols forced into the output file so that they won't be removed by garbage collection with LTO. PR ld/23309 * ldlang.c (insert_undefined): Set non_ir_ref_regular to TRUE. * plugin.c (is_visible_from_outside): Don't scan entry_symbol. * testsuite/ld-plugin/pr23309.c: New file. * testsuite/ld-plugin/pr23309.d: Likewise.