diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-01-13 07:46:14 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-01-13 07:47:52 -0800 |
commit | 857e829e3a0b681c3cd807a307f53f466a332204 (patch) | |
tree | 4104fe593acb17fa804b277924239f9f22d0b52c /gold/powerpc.cc | |
parent | 6f8976bfd6d7848268849b88e95917217ee31d3e (diff) | |
download | gdb-857e829e3a0b681c3cd807a307f53f466a332204.zip gdb-857e829e3a0b681c3cd807a307f53f466a332204.tar.gz gdb-857e829e3a0b681c3cd807a307f53f466a332204.tar.bz2 |
Gold: Fix build with GCC 4.2
PR gold/21040
* powerpc.cc (Powerpc_relobj<size, big_endian>::make_toc_relative):
Cast 0x80008000 to uint64_t.
Diffstat (limited to 'gold/powerpc.cc')
-rw-r--r-- | gold/powerpc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/powerpc.cc b/gold/powerpc.cc index 3e4e08b..a67c336 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -2010,7 +2010,7 @@ Powerpc_relobj<size, big_endian>::make_toc_relative( Address got_base = (target->got_section()->output_section()->address() + this->toc_base_offset()); addr -= got_base; - if (addr + 0x80008000 >= (uint64_t) 1 << 32) + if (addr + (uint64_t) 0x80008000 >= (uint64_t) 1 << 32) return false; *value = addr; |