diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-07-04 06:27:58 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-07-04 06:29:13 -0700 |
commit | 94d401b8b88a76b1372ce44e805516756a4f737b (patch) | |
tree | 62f580d5a657896a602fad555ea6b11c7cdc48fa /gdb/nat | |
parent | b14b7ff14ffe911ec562004304841cf7d2775a19 (diff) | |
download | gdb-94d401b8b88a76b1372ce44e805516756a4f737b.zip gdb-94d401b8b88a76b1372ce44e805516756a4f737b.tar.gz gdb-94d401b8b88a76b1372ce44e805516756a4f737b.tar.bz2 |
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.
Diffstat (limited to 'gdb/nat')
0 files changed, 0 insertions, 0 deletions