aboutsummaryrefslogtreecommitdiff
path: root/gold/ChangeLog
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2015-06-11 13:19:38 -0700
committerCary Coutant <ccoutant@gmail.com>2015-06-11 13:21:11 -0700
commit5d7908e0880030628536a0266968a15922574735 (patch)
tree164c158e8268ac8a66cfb08fec0edd64a26447f7 /gold/ChangeLog
parentdd68f8fa8e2412c5c16380871d8ac5e40909aef6 (diff)
downloadgdb-5d7908e0880030628536a0266968a15922574735.zip
gdb-5d7908e0880030628536a0266968a15922574735.tar.gz
gdb-5d7908e0880030628536a0266968a15922574735.tar.bz2
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.
Diffstat (limited to 'gold/ChangeLog')
-rw-r--r--gold/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 4d6cd3d..7039dd2 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,5 +1,11 @@
2015-06-11 Cary Coutant <ccoutant@gmail.com>
+ * aarch64.cc (Erratum_stub::STUB_ADDR_ALIGN): Move initialization
+ outside class body.
+ (Reloc_stub::STUB_ADDR_ALIGN): Likewise.
+
+2015-06-11 Cary Coutant <ccoutant@gmail.com>
+
PR gold/17731
* layout.cc (corresponding_uncompressed_section_name): New function.
(Layout::choose_output_section): Call it.