2009-10-30 Doug Kwan <dougkwan@google.com>
authorDoug Kwan <dougkwan@google.com>
Sat, 31 Oct 2009 03:06:59 +0000 (03:06 +0000)
committerDoug Kwan <dougkwan@google.com>
Sat, 31 Oct 2009 03:06:59 +0000 (03:06 +0000)
* arm.cc (Stub_addend_reader): Fix bug in previouls check-in.

gold/ChangeLog
gold/arm.cc

index 4952be1185c04003ac12495ac220baed74e03145..e617cdea086813f68dfd4b939ff1ace657dab884 100644 (file)
@@ -1,3 +1,7 @@
+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
index 420769f962eb04afa0c7e80d1c973a3eb3c001f7..3e2d70d37ede55a116c630d490be05586e0a65eb 100644 (file)
@@ -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