Warn for gold on lto objects without plugin
authorAlan Modra <amodra@gmail.com>
Wed, 6 Aug 2014 03:10:00 +0000 (12:40 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 6 Aug 2014 03:10:00 +0000 (12:40 +0930)
PR 13227
* symtab.cc (Symbol_table::add_from_relobj): Warn on __gnu_lto_slim.

gold/ChangeLog
gold/symtab.cc

index ebee9f292fd27255c3db8992dc3688547475414c..1b8a0acbb2d0e6243bb4b02313536c878338a8cf 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-06  Alan Modra  <amodra@gmail.com>
+
+       PR 13227
+       * symtab.cc (Symbol_table::add_from_relobj): Warn on __gnu_lto_slim.
+
 2014-07-21  Sriraman Tallam  <tmsriram@google.com>
 
        * object.cc (Relobj::is_section_name_included): Add
index b329bb612c67bc2baf2f28c23b6e2f1df26b411d..210ab2592790ae495d0c3a73976600c2a34ad143 100644 (file)
@@ -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(),