gold patch committed: PR 10925: Instantiate functions

View: New views
2 Messages — Rating Filter:   Alert me  

gold patch committed: PR 10925: Instantiate functions

by Ian Lance Taylor-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

PR 10925 points out that the recent changes to arm.cc mean that for some
compilers it is necessary to explicitly instantiate some more
Sized_relobj functions.  I committed this patch to fix the problem.

Ian


2009-11-08  Ian Lance Taylor  <ian@...>

        PR 10925
        * reloc.cc: Instantiate
        Sized_relobj::initialize_input_to_output_maps and
        Sized_relobj:free_input_to_output_maps.



Index: reloc.cc
===================================================================
RCS file: /cvs/src/src/gold/reloc.cc,v
retrieving revision 1.50
diff -p -u -r1.50 reloc.cc
--- reloc.cc 29 Oct 2009 05:16:23 -0000 1.50
+++ reloc.cc 9 Nov 2009 02:01:25 -0000
@@ -1551,6 +1551,46 @@ Sized_relobj<64, true>::do_relocate_sect
     Views* pviews);
 #endif
 
+#ifdef HAVE_TARGET_32_LITTLE
+template
+void
+Sized_relobj<32, false>::initialize_input_to_output_maps();
+
+template
+void
+Sized_relobj<32, false>::free_input_to_output_maps();
+#endif
+
+#ifdef HAVE_TARGET_32_BIG
+template
+void
+Sized_relobj<32, true>::initialize_input_to_output_maps();
+
+template
+void
+Sized_relobj<32, true>::free_input_to_output_maps();
+#endif
+
+#ifdef HAVE_TARGET_64_LITTLE
+template
+void
+Sized_relobj<64, false>::initialize_input_to_output_maps();
+
+template
+void
+Sized_relobj<64, false>::free_input_to_output_maps();
+#endif
+
+#ifdef HAVE_TARGET_64_BIG
+template
+void
+Sized_relobj<64, true>::initialize_input_to_output_maps();
+
+template
+void
+Sized_relobj<64, true>::free_input_to_output_maps();
+#endif
+
 #if defined(HAVE_TARGET_32_LITTLE) || defined(HAVE_TARGET_32_BIG)
 template
 class Merged_symbol_value<32>;

Re: gold patch committed: PR 10925: Instantiate functions

by Doug Kwan (關振德) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for fixing that.

-Doug

2009/11/9 Ian Lance Taylor <iant@...>:

> PR 10925 points out that the recent changes to arm.cc mean that for some
> compilers it is necessary to explicitly instantiate some more
> Sized_relobj functions.  I committed this patch to fix the problem.
>
> Ian
>
>
> 2009-11-08  Ian Lance Taylor  <ian@...>
>
>        PR 10925
>        * reloc.cc: Instantiate
>        Sized_relobj::initialize_input_to_output_maps and
>        Sized_relobj:free_input_to_output_maps.
>
>
>