aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog8
-rw-r--r--gold/object.cc6
2 files changed, 11 insertions, 3 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 85af0a3..6fe991d 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
2019-08-02 Alan Modra <amodra@gmail.com>
* powerpc.cc (Target_powerpc::Scan::get_reference_flags): Set
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());