aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-12-16 19:54:41 +0000
committerRichard Stallman <rms@gnu.org>1992-12-16 19:54:41 +0000
commit375526315dc36710dadd8ed04eb8d618024db6b2 (patch)
tree72c95c58bdb20285c5e80400f4d7f10d581425a8 /gcc
parent8d618585fce328e1f7cf818aa8d16dae679161ca (diff)
downloadgcc-375526315dc36710dadd8ed04eb8d618024db6b2.zip
gcc-375526315dc36710dadd8ed04eb8d618024db6b2.tar.gz
gcc-375526315dc36710dadd8ed04eb8d618024db6b2.tar.bz2
(assemble_trampoline_template): If TRAMPOLINE_SECTION
is defined, put the trampoline template into that section. From-SVN: r2887
Diffstat (limited to 'gcc')
-rw-r--r--gcc/varasm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 23722ca..217c9ed 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -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);