From 7cd4e5b756fa5c1ebe0ba7dd04e45d46330a7675 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 6 Aug 2014 12:40:00 +0930 Subject: [PATCH] Warn for gold on lto objects without plugin PR 13227 * symtab.cc (Symbol_table::add_from_relobj): Warn on __gnu_lto_slim. --- gold/ChangeLog | 5 +++++ gold/symtab.cc | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gold/ChangeLog b/gold/ChangeLog index ebee9f292fd..1b8a0acbb2d 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2014-08-06 Alan Modra + + PR 13227 + * symtab.cc (Symbol_table::add_from_relobj): Warn on __gnu_lto_slim. + 2014-07-21 Sriraman Tallam * object.cc (Relobj::is_section_name_included): Add diff --git a/gold/symtab.cc b/gold/symtab.cc index b329bb612c6..210ab259279 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -1133,6 +1133,10 @@ Symbol_table::add_from_relobj( const char* name = sym_names + st_name; + if (strcmp (name, "__gnu_lto_slim") == 0) + gold_info(_("%s: plugin needed to handle lto object"), + relobj->name().c_str()); + bool is_ordinary; unsigned int st_shndx = relobj->adjust_sym_shndx(i + symndx_offset, sym.get_st_shndx(), -- 2.30.2