aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2009-10-31 03:06:59 +0000
committerDoug Kwan <dougkwan@google.com>2009-10-31 03:06:59 +0000
commitebd95253ac689caf2e6b2d2155b544633d293c88 (patch)
tree5df94cb7c78aef7297e0eff62c8bee404a1a57c4 /gold
parente9bbb53879cdf1e21e8d37e11741a44a0f917f60 (diff)
downloadgdb-ebd95253ac689caf2e6b2d2155b544633d293c88.zip
gdb-ebd95253ac689caf2e6b2d2155b544633d293c88.tar.gz
gdb-ebd95253ac689caf2e6b2d2155b544633d293c88.tar.bz2
2009-10-30 Doug Kwan <dougkwan@google.com>
* arm.cc (Stub_addend_reader): Fix bug in previouls check-in.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog4
-rw-r--r--gold/arm.cc6
2 files changed, 7 insertions, 3 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 4952be1..e617cde 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,5 +1,9 @@
2009-10-30 Doug Kwan <dougkwan@google.com>
+ * arm.cc (Stub_addend_reader): Fix bug in previouls check-in.
+
+2009-10-30 Doug Kwan <dougkwan@google.com>
+
* arm.cc (Stub_addend_reader): New struct template definition
and partial specializations.
(Stub_addend_reader::operator()): New method definition for a
diff --git a/gold/arm.cc b/gold/arm.cc
index 420769f..3e2d70d 100644
--- a/gold/arm.cc
+++ b/gold/arm.cc
@@ -1042,8 +1042,7 @@ struct Stub_addend_reader
unsigned int /* r_type */,
const unsigned char* /* view */,
const typename Reloc_types<sh_type,
- 32, big_endian>::Reloc& /* reloc */) const
- { gold_unreachable(); }
+ 32, big_endian>::Reloc& /* reloc */) const;
};
// Specialized Stub_addend_reader for SHT_REL type relocation sections.
@@ -1071,7 +1070,8 @@ struct Stub_addend_reader<elfcpp::SHT_RELA, big_endian>
unsigned int,
const unsigned char*,
const typename Reloc_types<elfcpp::SHT_RELA, 32,
- big_endian>::Reloc& reloc) const;
+ big_endian>::Reloc& reloc) const
+ { return reloc.get_r_addend(); }
};
// Utilities for manipulating integers of up to 32-bits