diff options
author | Martin Liska <mliska@suse.cz> | 2019-08-16 13:14:36 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2019-08-16 13:14:36 +0200 |
commit | b4c555cfc48689d45481effff23c9017a4f3557f (patch) | |
tree | 76f2178975c851a0e79f65b265a02ddfa3a8caa3 /gold/object.cc | |
parent | aa7ca1bb443e8c2baad17392f395d1556fecfafa (diff) | |
download | gdb-b4c555cfc48689d45481effff23c9017a4f3557f.zip gdb-b4c555cfc48689d45481effff23c9017a4f3557f.tar.gz gdb-b4c555cfc48689d45481effff23c9017a4f3557f.tar.bz2 |
Fix detection of missing plugin for LTO objects.
2019-08-16 Martin Liska <mliska@suse.cz>
PR ld/24912
* elflink.c: Report error only for not relocatable.
* linker.c (_bfd_generic_link_add_one_symbol): Do not handle
here lto_slim_object as it's handled in caller.
2019-08-16 Martin Liska <mliska@suse.cz>
PR ld/24912
* object.cc (big_endian>::do_layout): Do not report error,
but only set a flag.
(big_endian>::do_add_symbols): Report error only for when
relocatable.
Diffstat (limited to 'gold/object.cc')
-rw-r--r-- | gold/object.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/object.cc b/gold/object.cc index 86c519a..d505ce4 100644 --- a/gold/object.cc +++ b/gold/object.cc @@ -1887,8 +1887,7 @@ Sized_relobj_file<size, big_endian>::do_layout(Symbol_table* symtab, const unsigned char* pcontents = this->section_contents(i, &contents_len, false); struct lto_section lsection = *(const lto_section*)pcontents; if (lsection.slim_object) - gold_info(_("%s: plugin needed to handle lto object"), - this->name().c_str()); + layout->set_lto_slim_object (); } } @@ -2127,7 +2126,8 @@ Sized_relobj_file<size, big_endian>::do_add_symbols(Symbol_table* symtab, this->symbols_.resize(symcount); - if (layout->is_lto_slim_object ()) + if (!parameters->options().relocatable() + && layout->is_lto_slim_object ()) gold_info(_("%s: plugin needed to handle lto object"), this->name().c_str()); |