aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-03-24 15:46:50 +1030
committerAlan Modra <amodra@gmail.com>2015-03-24 17:06:12 +1030
commit282c9750306eb544f65cfed5665eee2b84c7c770 (patch)
treeb5cea14a716ad315b5d67ca76643911eaaa0c9ea /gold
parent823d25713dd1d6aedc605e3da2007b54da9dff2d (diff)
downloadgdb-282c9750306eb544f65cfed5665eee2b84c7c770.zip
gdb-282c9750306eb544f65cfed5665eee2b84c7c770.tar.gz
gdb-282c9750306eb544f65cfed5665eee2b84c7c770.tar.bz2
PR18147, relocation overflow when --unresolved-symbols=ignore-all
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. PR18147 * powerpc.cc (Target_powerpc::Relocate::relocate): Don't report relocation errors for branches to strong undefined symbols.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog6
-rw-r--r--gold/powerpc.cc2
2 files changed, 7 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 600802d..f970e66 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,9 @@
+2015-03-24 Alan Modra <amodra@gmail.com>
+
+ PR 18147
+ * powerpc.cc (Target_powerpc::Relocate::relocate): Don't report
+ relocation errors for branches to strong undefined symbols.
+
2015-03-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
* merge.cc (Object_merge_map::get_input_merge_map): Make it const.
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(),