* sparc.cc: Add definitions for Output_data_plt_sparc class
authorIan Lance Taylor <ian@airs.com>
Tue, 15 Apr 2008 21:41:29 +0000 (21:41 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 15 Apr 2008 21:41:29 +0000 (21:41 +0000)
constants.

gold/ChangeLog
gold/sparc.cc

index 1516415bf5672366c0dae4ea262c66baca3eb201..c0675fb6fad7c78960edc97ac065071b68f1638f 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-15  Ian Lance Taylor  <iant@google.com>
+
+       * sparc.cc: Add definitions for Output_data_plt_sparc class
+       constants.
+
 2008-04-14  David S. Miller  <davem@davemloft.net>
 
        * sparc.cc: New file.
index 2812fe1437049a331dbbd9c805d2534348055c39..e293ea19c1d617952e9241117b42542dd28fd16b 100644 (file)
@@ -1078,6 +1078,25 @@ class Output_data_plt_sparc : public Output_section_data
   unsigned int count_;
 };
 
+// Define the constants as required by C++ standard.
+
+template<int size, bool big_endian>
+const int Output_data_plt_sparc<size, big_endian>::base_plt_entry_size;
+
+template<int size, bool big_endian>
+const unsigned int
+Output_data_plt_sparc<size, big_endian>::plt_entries_per_block;
+
+template<int size, bool big_endian>
+const unsigned int Output_data_plt_sparc<size, big_endian>::plt_insn_chunk_size;
+
+template<int size, bool big_endian>
+const unsigned int
+Output_data_plt_sparc<size, big_endian>::plt_pointer_chunk_size;
+
+template<int size, bool big_endian>
+const unsigned int Output_data_plt_sparc<size, big_endian>::plt_block_size;
+
 // Create the PLT section.  The ordinary .got section is an argument,
 // since we need to refer to the start.