[PATCH] mips: terminate the FDE before the return trampoline in makecontext

Maciej W. Rozycki macro@imgtec.com
Tue Mar 22 21:01:00 GMT 2016


On Wed, 9 Mar 2016, Aurelien Jarno wrote:

> diff --git a/sysdeps/unix/sysv/linux/mips/makecontext.S b/sysdeps/unix/sysv/linux/mips/makecontext.S
> index 66600c7..3196554 100644
> --- a/sysdeps/unix/sysv/linux/mips/makecontext.S
> +++ b/sysdeps/unix/sysv/linux/mips/makecontext.S
> @@ -153,6 +153,11 @@ NESTED (__makecontext, FRAMESZ, ra)
>  #endif
>  	jr	ra
>  
> +	/* We need to terminate the FDE to stop unwinding if backtrace was
> +	   called within a context created by makecontext.  */
> +	cfi_endproc
> +	nop
> +
>  99:

 What's this NOP needed for here?

  Maciej



More information about the Libc-alpha mailing list