Fix segfault in relocate_erratum_stub on aarch64.
authorPeter Smith <peter.smith@linaro.org>
Thu, 30 Nov 2017 21:30:58 +0000 (13:30 -0800)
committerCary Coutant <ccoutant@gmail.com>
Thu, 30 Nov 2017 23:08:21 +0000 (15:08 -0800)
commit036aae79303c43c56b604bc215ce4a70fc2a6474
treeeb7187ce6bd00fd1d633ef416b6bdfe122d5de7a
parent4a7e52349807017f9bc09ea25f07924f2ec971b3
Fix segfault in relocate_erratum_stub on aarch64.

The fix for PR21868 (an internal error when --fix-cortex-a53-843419
is applied) has a small mistake in it. When the stub_owner section
needs an erratum fix an incorrect address for the stubs for the section
is given to relocate_erratum_stub. If we are lucky we will get a segfault;
if we aren't, an incorrect patch or data corruption is possible.
The error is visible in PR21868, but the side-effects aren't fatal.

gold/
PR gold/22233
* aarch64.cc (AArch64_relobj::fix_errata_and_relocate_erratum_stubs):
Fix calculation of stub address.
gold/ChangeLog
gold/aarch64.cc
This page took 0.029209 seconds and 4 git commands to generate.