]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR18147, relocation overflow when --unresolved-symbols=ignore-all
authorAlan Modra <amodra@gmail.com>
Tue, 24 Mar 2015 05:16:50 +0000 (15:46 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 5 Jun 2015 14:35:17 +0000 (00:05 +0930)
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.

gold/ChangeLog
gold/powerpc.cc

index 90c3aa75e09fa738c135d186c3145d3736925ddd..b2225e0b0857575e3dae0e00febd75c6b224b917 100644 (file)
@@ -1,3 +1,11 @@
+2015-06-05  Alan Modra  <amodra@gmail.com>
+
+       Apply from master
+       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-18  Alan Modra  <amodra@gmail.com>
 
        Apply from master
index 93f2fcccba93beac8ec132a4b679395fe618ca32..e7f35540138959ee84622c9d825265b4f489918f 100644 (file)
@@ -7713,7 +7713,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(),