diff options
author | Alan Modra <amodra@gmail.com> | 2014-08-06 12:40:00 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-08-06 12:40:00 +0930 |
commit | 7cd4e5b756fa5c1ebe0ba7dd04e45d46330a7675 (patch) | |
tree | 180033d710931655813bd6d3948ce2041ea8e4c0 /gold/symtab.cc | |
parent | 8e07a239c12ba3b746ef0cf2c53d572315aef654 (diff) | |
download | gdb-7cd4e5b756fa5c1ebe0ba7dd04e45d46330a7675.zip gdb-7cd4e5b756fa5c1ebe0ba7dd04e45d46330a7675.tar.gz gdb-7cd4e5b756fa5c1ebe0ba7dd04e45d46330a7675.tar.bz2 |
Warn for gold on lto objects without plugin
PR 13227
* symtab.cc (Symbol_table::add_from_relobj): Warn on __gnu_lto_slim.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r-- | gold/symtab.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc index b329bb6..210ab25 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(), |