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 /ld/ChangeLog | |
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 'ld/ChangeLog')
-rw-r--r-- | ld/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 6696014..e28d55d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,13 @@ 2018-07-04 H.J. Lu <hongjiu.lu@intel.com> + 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. + +2018-07-04 H.J. Lu <hongjiu.lu@intel.com> + PR ld/23358 * lexsup.c (elf_shlib_list_options): Properly display default for -z separate-code. |