Message ID | 1494447812-11286-1-git-send-email-adhemerval.zanella@linaro.org |
---|---|
State | New |
Headers | show |
> This patch adds them missing noexectack on sparc assembly implementation. I > saw no regression on gcc testsuite and it fixes the regression on GLIBC > side. > > libgcc/ > > * config/sparc/lb1spc.S [__ELF__ && __linux__]: Emit .note.GNU-stack > section for a non-executable stack. Thanks for fixing this, applied to all active branches. -- Eric Botcazou
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