[RFC] [MIPS] Enable non-executable PT_GNU_STACK support

Joseph Myers joseph@codesourcery.com
Thu Jan 21 22:17:00 GMT 2016


On Thu, 21 Jan 2016, Faraz Shahbazker wrote:

> +#ifdef EXEC_STACK_OVERRIDE
> +  EXEC_STACK_OVERRIDE (&GL(dl_stack_flags));
> +#endif

We want to avoid #ifdef where possible.  It's better to have a default 
definition of this macro to expand to do nothing, in a header overridden 
for MIPS.

> @@ -14,3 +14,9 @@ UNIQUE
>  #
>  # MIPS O32 FP64
>  MIPS_O32_FP64   mips*-*-linux*
> +#
> +# MIPS IFUNC
> +IFUNC		mips*-*-linux*
> +#
> +# Non-executable stack support
> +MIPS_GNU_STACK mips*-*-linux*
> \ No newline at end of file

Always end text files with a newline (exactly one newline, otherwise the 
git hooks will complain).

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list