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 /bfd/elflink.c | |
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 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index c7440d1..16d83bb 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -4401,7 +4401,8 @@ error_free_dyn: goto error_free_vers; } - if (abfd->lto_slim_object) + if (!bfd_link_relocatable (info) + && abfd->lto_slim_object) { _bfd_error_handler (_("%pB: plugin needed to handle lto object"), abfd); |