Removed all uses of nested functions as they only work with gcc and
cause the stack to be marked as executable in order for them to work.

All assembler files have also had a declaration added so that the
object they generate will be marked as not needing an executable stack.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2446 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_helpers.S b/coregrind/vg_helpers.S
index 08bbfc9..5d801c3 100644
--- a/coregrind/vg_helpers.S
+++ b/coregrind/vg_helpers.S
@@ -723,7 +723,10 @@
 VG_(helper_undefined_instruction):
 1:	ud2
 	jmp	1b
-			
+	        
+/* Let the linker know we don't need an executable stack */
+.section .note.GNU-stack,"",@progbits
+		
 ##--------------------------------------------------------------------##
 ##--- end                                             vg_helpers.S ---##
 ##--------------------------------------------------------------------##