aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.cc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-12-10 11:28:48 -0800
committerH.J. Lu <hjl.tools@gmail.com>2015-12-10 11:29:03 -0800
commitbebf4942b083027860539b7c5e0649714b92e401 (patch)
treeb1b8115572ef0b412d443cfc82b1ff30d11cdf3a /gold/symtab.cc
parentf4f4330e517a0497601baf6253d6408b77b10626 (diff)
downloadgdb-bebf4942b083027860539b7c5e0649714b92e401.zip
gdb-bebf4942b083027860539b7c5e0649714b92e401.tar.gz
gdb-bebf4942b083027860539b7c5e0649714b92e401.tar.bz2
ld -r doesn't need plugin for slim lto object
Plugin isn't required on slim lto object for relocatable link. PR ld/19317 * symtab.cc (Symbol_table::add_from_relobj): Don't complain plugin needed to handle slim lto object for relocatable link.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r--gold/symtab.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc
index 22a44e0..f43fb4f 100644
--- a/gold/symtab.cc
+++ b/gold/symtab.cc
@@ -1171,7 +1171,8 @@ Symbol_table::add_from_relobj(
const char* name = sym_names + st_name;
- if (strcmp (name, "__gnu_lto_slim") == 0)
+ if (!parameters->options().relocatable()
+ && strcmp (name, "__gnu_lto_slim") == 0)
gold_info(_("%s: plugin needed to handle lto object"),
relobj->name().c_str());