Commit 37552631 by Richard Stallman

(assemble_trampoline_template): If TRAMPOLINE_SECTION

is defined, put the trampoline template into that section.

From-SVN: r2887
parent 8d618585
...@@ -1071,10 +1071,13 @@ assemble_trampoline_template () ...@@ -1071,10 +1071,13 @@ assemble_trampoline_template ()
char *name; char *name;
int align; int align;
/* Some assemblers don't like instructions in data segment, so always /* By default, put trampoline templates in read-only data section. */
put trampoline template in text segment. */
#ifdef TRAMPOLINE_SECTION
TRAMPOLINE_SECTION ();
#else
readonly_data_section (); readonly_data_section ();
#endif
/* Write the assembler code to define one. */ /* Write the assembler code to define one. */
align = floor_log2 (FUNCTION_BOUNDARY / BITS_PER_UNIT); align = floor_log2 (FUNCTION_BOUNDARY / BITS_PER_UNIT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment