Bring in the following fix from gcc-current:
2002-10-17 Jason Thorpe <thorpej@wasabisystems.com> * config/alpha/alpha.c (alpha_initialize_trampoline): Use tramp, not addr, to pass the trampoline address to __enable_execute_stack. Otherwise, incorrect behavior would result if the trampoline happend to stradle a page boundary.
This commit is contained in:
parent
2c07094b2a
commit
00b192ce18
|
@ -3070,7 +3070,7 @@ alpha_initialize_trampoline (tramp, fnaddr, cxt, fnofs, cxtofs, jmpofs)
|
||||||
|
|
||||||
#ifdef TRANSFER_FROM_TRAMPOLINE
|
#ifdef TRANSFER_FROM_TRAMPOLINE
|
||||||
emit_library_call (gen_rtx (SYMBOL_REF, Pmode, "__enable_execute_stack"),
|
emit_library_call (gen_rtx (SYMBOL_REF, Pmode, "__enable_execute_stack"),
|
||||||
0, VOIDmode, 1, addr, Pmode);
|
0, VOIDmode, 1, tramp, Pmode);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (jmpofs >= 0)
|
if (jmpofs >= 0)
|
||||||
|
|
Loading…
Reference in New Issue