diff options
author | Than McIntosh <thanm@google.com> | 2015-10-16 09:44:18 -0400 |
---|---|---|
committer | Than McIntosh <thanm@google.com> | 2015-10-16 09:44:18 -0400 |
commit | b51d5d619a9fcf799bf90c4b16bb74d6caf00ff1 (patch) | |
tree | 4ccfc3839d66f65fd725298386d0ce4f57ec2874 /binutils-2.25/gold/mapfile.cc | |
parent | 21947aa23cb8a568fc4a7cd2755227230e9fc4e1 (diff) | |
download | toolchain_binutils-b51d5d619a9fcf799bf90c4b16bb74d6caf00ff1.zip toolchain_binutils-b51d5d619a9fcf799bf90c4b16bb74d6caf00ff1.tar.gz toolchain_binutils-b51d5d619a9fcf799bf90c4b16bb74d6caf00ff1.tar.bz2 |
Fix gold build error at -O0.
Cherrypick of upstream commit 5d7908e0880030628536a0266968a15922574735
Author: Cary Coutant <ccoutant@gmail.com>
Date: Thu Jun 11 13:19:38 2015 -0700
Fix gold build error at -O0.
In aarch64.cc, Erratum_stub::STUB_ADDR_ALIGN and Reloc_stub::STUB_ADDR_ALIGN
are declared as static const int, and initialized in the class body. These
values are referenced from outside the class body, and with no optimization,
the references go unresolved.
gold/
* aarch64.cc (Erratum_stub::STUB_ADDR_ALIGN): Move initialization
outside class body.
(Reloc_stub::STUB_ADDR_ALIGN): Likewise.
Change-Id: I6c0726e624be076e0d0565652a56da5ef761d88a
Diffstat (limited to 'binutils-2.25/gold/mapfile.cc')
0 files changed, 0 insertions, 0 deletions