(assemble_trampoline_template): If TRAMPOLINE_SECTION
authorRichard Stallman <rms@gnu.org>
Wed, 16 Dec 1992 19:54:41 +0000 (19:54 +0000)
committerRichard Stallman <rms@gnu.org>
Wed, 16 Dec 1992 19:54:41 +0000 (19:54 +0000)
is defined, put the trampoline template into that section.

From-SVN: r2887

gcc/varasm.c

index 23722ca6ea58f437574e2a7d7bc601cfca6baddf..217c9ed2d113a4467dddb9a0bfb2ce5cede4a25a 100644 (file)
@@ -1071,10 +1071,13 @@ assemble_trampoline_template ()
   char *name;
   int align;
 
-  /* Some assemblers don't like instructions in data segment, so always
-     put trampoline template in text segment.  */
+  /* By default, put trampoline templates in read-only data section.  */
 
+#ifdef TRAMPOLINE_SECTION
+  TRAMPOLINE_SECTION ();
+#else
   readonly_data_section ();
+#endif
 
   /* Write the assembler code to define one.  */
   align = floor_log2 (FUNCTION_BOUNDARY / BITS_PER_UNIT);