lb1spc.S: Emit .note.GNU-stack section for a non-executable stack.

* config/sparc/lb1spc.S [__ELF__ && __linux__]: Emit .note.GNU-stack
	section for a non-executable stack.

From-SVN: r248044
This commit is contained in:
Adhemerval Zanella 2017-05-15 07:36:33 +00:00 committed by Eric Botcazou
parent d009a5cfb3
commit 16fbcc168c
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2017-05-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
* config/sparc/lb1spc.S [__ELF__ && __linux__]: Emit .note.GNU-stack
section for a non-executable stack.
2017-05-10 Andreas Tobler <andreast@gcc.gnu.org>
Backport from mainline

View File

@ -5,6 +5,12 @@
slightly edited to match the desired calling convention, and also to
optimize them for our purposes. */
/* An executable stack is *not* required for these functions. */
#if defined(__ELF__) && defined(__linux__)
.section .note.GNU-stack,"",%progbits
.previous
#endif
#ifdef L_mulsi3
.text
.align 4