diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2017-05-15 07:36:18 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2017-05-15 07:36:18 +0000 |
commit | c39d309a2551b68af40f88f024771c61d7644d1b (patch) | |
tree | 23b28c025e9dd0e712cb25dccb8d492451b7e380 /libgcc | |
parent | 4d37001f1ec192f838feacdb609442db7045059e (diff) | |
download | gcc-c39d309a2551b68af40f88f024771c61d7644d1b.zip gcc-c39d309a2551b68af40f88f024771c61d7644d1b.tar.gz gcc-c39d309a2551b68af40f88f024771c61d7644d1b.tar.bz2 |
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: r248043
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 5 | ||||
-rw-r--r-- | libgcc/config/sparc/lb1spc.S | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index c070a3d..b00a190 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -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-14 Krister Walfridsson <krister.walfridsson@gmail.com> PR target/80600 diff --git a/libgcc/config/sparc/lb1spc.S b/libgcc/config/sparc/lb1spc.S index b60bd57..e693864 100644 --- a/libgcc/config/sparc/lb1spc.S +++ b/libgcc/config/sparc/lb1spc.S @@ -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 |