This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PR18147, relocation overflow when --unresolved-symbols=ignore-all
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Tue, 24 Mar 2015 17:05:27 +1030
- Subject: PR18147, relocation overflow when --unresolved-symbols=ignore-all
- Authentication-results: sourceware.org; auth=none
If ignoring unresolved symbols, ignore reloc overflows too. If not
ignoring unresolved symbols we will report an error about the symbol
being undefined, making any report about reloc overflow superfluous.
PR 18147
* powerpc.cc (Target_powerpc::Relocate::relocate): Don't report
relocation errors for branches to strong undefined symbols.
diff --git a/gold/powerpc.cc b/gold/powerpc.cc
index d9a61ad..47bdc13 100644
--- a/gold/powerpc.cc
+++ b/gold/powerpc.cc
@@ -7792,7 +7792,7 @@ Target_powerpc<size, big_endian>::Relocate::relocate(
if (status != Powerpc_relocate_functions<size, big_endian>::STATUS_OK
&& (has_stub_value
|| !(gsym != NULL
- && gsym->is_weak_undefined()
+ && gsym->is_undefined()
&& is_branch_reloc(r_type))))
{
gold_error_at_location(relinfo, relnum, rela.get_r_offset(),
--
Alan Modra
Australia Development Lab, IBM