From: Adhemerval Zanella Date: Mon, 15 May 2017 07:36:18 +0000 (+0000) Subject: lb1spc.S: Emit .note.GNU-stack section for a non-executable stack. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c39d309a2551b68af40f88f024771c61d7644d1b;p=gcc.git 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 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index c070a3d2a96..b00a190b6c7 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2017-05-15 Adhemerval Zanella + + * config/sparc/lb1spc.S [__ELF__ && __linux__]: Emit .note.GNU-stack + section for a non-executable stack. + 2017-05-14 Krister Walfridsson PR target/80600 diff --git a/libgcc/config/sparc/lb1spc.S b/libgcc/config/sparc/lb1spc.S index b60bd5740e7..e6938646404 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