This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch committed] Fix PR target/38627


Hi,

I've applied the pre-approved patch below to fix PR target/38627
from Mike Frysinger.  It's double-checked against the current
trunk on sh4-unknown-linux-gnu.

Regards,
	kaz
--
2009-04-18  Mike Frysinger  <vapier@gentoo.org>

	PR target/38627
	* config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
	* config/sh/linux-atomic.asm: Likewise.

diff -uprN ORIG/trunk/gcc/config/sh/lib1funcs.asm trunk/gcc/config/sh/lib1funcs.asm
--- ORIG/trunk/gcc/config/sh/lib1funcs.asm	2009-04-10 09:29:05.000000000 +0900
+++ trunk/gcc/config/sh/lib1funcs.asm	2009-04-17 18:31:02.000000000 +0900
@@ -30,6 +30,11 @@ see the files COPYING3 and COPYING.RUNTI
 !! 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 -uprN ORIG/trunk/gcc/config/sh/linux-atomic.asm trunk/gcc/config/sh/linux-atomic.asm
--- ORIG/trunk/gcc/config/sh/linux-atomic.asm	2009-04-10 09:29:05.000000000 +0900
+++ trunk/gcc/config/sh/linux-atomic.asm	2009-04-17 18:29:46.000000000 +0900
@@ -135,4 +135,7 @@ ATOMIC_FETCH_AND_COMBOP(nand,and,not,1,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__ */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]