From: Richard Stallman Date: Wed, 16 Dec 1992 19:54:41 +0000 (+0000) Subject: (assemble_trampoline_template): If TRAMPOLINE_SECTION X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=375526315dc36710dadd8ed04eb8d618024db6b2;p=gcc.git (assemble_trampoline_template): If TRAMPOLINE_SECTION is defined, put the trampoline template into that section. From-SVN: r2887 --- diff --git a/gcc/varasm.c b/gcc/varasm.c index 23722ca6ea5..217c9ed2d11 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);