From: Mike Frysinger Date: Fri, 17 Apr 2009 22:20:40 +0000 (+0000) Subject: re PR target/38627 (SuperH libgcc.a lacks .note.GNU-stack markings in math funcs) X-Git-Tag: releases/gcc-4.5.0~6446 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2984e1b612868da6ac5b39f37ea3ce917f8880ad;p=thirdparty%2Fgcc.git re PR target/38627 (SuperH libgcc.a lacks .note.GNU-stack markings in math funcs) PR target/38627 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack. * config/sh/linux-atomic.asm: Likewise. From-SVN: r146297 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 41afc3ada311..7f550ea89724 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-04-17 Mike Frysinger + + PR target/38627 + * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack. + * config/sh/linux-atomic.asm: Likewise. + 2009-04-17 Diego Novillo * except.c (debug_eh_tree): New. diff --git a/gcc/config/sh/lib1funcs.asm b/gcc/config/sh/lib1funcs.asm index 1f36f73dbc3e..2f0ca16cd919 100644 --- a/gcc/config/sh/lib1funcs.asm +++ b/gcc/config/sh/lib1funcs.asm @@ -30,6 +30,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see !! recoded in assembly by Toshiyasu Morita !! tm@netcom.com +#if defined(__ELF__) && defined(__linux__) +.section .note.GNU-stack,"",%progbits +.previous +#endif + /* SH2 optimizations for ___ashrsi3, ___ashlsi3, ___lshrsi3 and ELF local label prefixes by J"orn Rennecke amylaar@cygnus.com */ diff --git a/gcc/config/sh/linux-atomic.asm b/gcc/config/sh/linux-atomic.asm index bf95970424c9..fd3a7720e995 100644 --- a/gcc/config/sh/linux-atomic.asm +++ b/gcc/config/sh/linux-atomic.asm @@ -135,4 +135,7 @@ ATOMIC_FETCH_AND_COMBOP(nand,and,not,1,b,extu.b) ATOMIC_FETCH_AND_COMBOP(nand,and,not,2,w,extu.w) ATOMIC_FETCH_AND_COMBOP(nand,and,not,4,l,mov) +.section .note.GNU-stack,"",%progbits +.previous + #endif /* ! __SH5__ */