aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-08-12 10:31:41 +0930
committerAlan Modra <amodra@gmail.com>2014-08-12 10:31:41 +0930
commit61f41c3c243bbcc0ab2e5adb3157ce00dc11fc27 (patch)
tree263819710f1f69db79253b1253e037843e69531e /include
parentd769e349bc2c28261d4b2391b58eb7dc3f452e99 (diff)
downloadgdb-61f41c3c243bbcc0ab2e5adb3157ce00dc11fc27.zip
gdb-61f41c3c243bbcc0ab2e5adb3157ce00dc11fc27.tar.gz
gdb-61f41c3c243bbcc0ab2e5adb3157ce00dc11fc27.tar.bz2
Fix non-plugin warning symbol handling
PR ld/16746 include/ * bfdlink.h (struct bfd_link_info): Add lto_plugin_active. bfd/ * linker.c (_bfd_generic_link_add_one_symbol <WARN>): Handle !lto_plugin_active. ld/ * plugin.c (plugin_load_plugins): Set link_info.lto_plugin_active.
Diffstat (limited to 'include')
-rw-r--r--include/bfdlink.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bfdlink.h b/include/bfdlink.h
index fc14a9f..58dba2a 100644
--- a/include/bfdlink.h
+++ b/include/bfdlink.h
@@ -292,6 +292,9 @@ struct bfd_link_info
callback. */
unsigned int notice_all: 1;
+ /* TRUE if the LTO plugin is active. */
+ unsigned int lto_plugin_active: 1;
+
/* TRUE if we are loading LTO outputs. */
unsigned int loading_lto_outputs: 1;