pr22233
authorMatthias Klose <doko@debian.org>
Mon, 13 Nov 2017 14:45:39 +0000 (14:45 +0000)
committerMatthias Klose <doko@debian.org>
Mon, 13 Nov 2017 14:45:39 +0000 (14:45 +0000)
# DP: Proposed patch for PR gold/22233.

Gbp-Pq: Name pr22233.diff

gold/aarch64.cc

index b4287a6f25b4a26a66a9f024cdc728c31bc1a719..0f70a55d035689343cb60774ee8f94eda736a446 100644 (file)
@@ -2041,7 +2041,8 @@ AArch64_relobj<size, big_endian>::fix_errata_and_relocate_erratum_stubs(
           // executed.
           stub_table->relocate_erratum_stub(
            stub,
-           pview.view + view_offset + (stub_table->address() - pview.address));
+           pview.view + view_offset + (stub_table->address() -
+                                        (pview.address + view_offset)));
 
           // Next erratum stub.
          ++p;