patches/gcc/4.3.4/210-noteGNUstack-00.patch
changeset 1761 88020b2c3246
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.3.4/210-noteGNUstack-00.patch	Tue Jan 12 19:24:03 2010 +0100
     1.3 @@ -0,0 +1,101 @@
     1.4 +Original patch from: ../4.3.2/210-noteGNUstack-00.patch
     1.5 +
     1.6 +-= BEGIN original header =-
     1.7 +Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.1/gentoo/61_all_gcc4-ia64-noteGNUstack.patch
     1.8 +2004-09-20  Jakub Jelinek  <jakub@redhat.com>
     1.9 +
    1.10 +	* config/rs6000/ppc-asm.h: Add .note.GNU-stack section also
    1.11 +	on ppc64-linux.
    1.12 +
    1.13 +	* config/ia64/lib1funcs.asm: Add .note.GNU-stack section on
    1.14 +	ia64-linux.
    1.15 +	* config/ia64/crtbegin.asm: Likewise.
    1.16 +	* config/ia64/crtend.asm: Likewise.
    1.17 +	* config/ia64/crti.asm: Likewise.
    1.18 +	* config/ia64/crtn.asm: Likewise.
    1.19 +
    1.20 +2004-05-14  Jakub Jelinek  <jakub@redhat.com>
    1.21 +
    1.22 +	* config/ia64/linux.h (TARGET_ASM_FILE_END): Define.
    1.23 +
    1.24 +-= END original header =-
    1.25 +
    1.26 +diff -durN gcc-4.3.3.orig/gcc/config/ia64/crtbegin.asm gcc-4.3.3/gcc/config/ia64/crtbegin.asm
    1.27 +--- gcc-4.3.3.orig/gcc/config/ia64/crtbegin.asm	2005-09-27 02:52:24.000000000 +0200
    1.28 ++++ gcc-4.3.3/gcc/config/ia64/crtbegin.asm	2009-01-27 22:19:39.000000000 +0100
    1.29 +@@ -255,3 +255,7 @@
    1.30 + .weak __cxa_finalize
    1.31 + #endif
    1.32 + .weak _Jv_RegisterClasses
    1.33 ++
    1.34 ++#ifdef __linux__
    1.35 ++.section .note.GNU-stack; .previous
    1.36 ++#endif
    1.37 +diff -durN gcc-4.3.3.orig/gcc/config/ia64/crtend.asm gcc-4.3.3/gcc/config/ia64/crtend.asm
    1.38 +--- gcc-4.3.3.orig/gcc/config/ia64/crtend.asm	2005-09-27 02:52:24.000000000 +0200
    1.39 ++++ gcc-4.3.3/gcc/config/ia64/crtend.asm	2009-01-27 22:19:39.000000000 +0100
    1.40 +@@ -122,3 +122,7 @@
    1.41 + 
    1.42 + 	br.ret.sptk.many rp
    1.43 + 	.endp __do_global_ctors_aux
    1.44 ++
    1.45 ++#ifdef __linux__
    1.46 ++.section .note.GNU-stack; .previous
    1.47 ++#endif
    1.48 +diff -durN gcc-4.3.3.orig/gcc/config/ia64/crti.asm gcc-4.3.3/gcc/config/ia64/crti.asm
    1.49 +--- gcc-4.3.3.orig/gcc/config/ia64/crti.asm	2005-06-25 03:22:41.000000000 +0200
    1.50 ++++ gcc-4.3.3/gcc/config/ia64/crti.asm	2009-01-27 22:19:39.000000000 +0100
    1.51 +@@ -64,3 +64,7 @@
    1.52 + 	.body
    1.53 + 
    1.54 + # end of crti.asm
    1.55 ++
    1.56 ++#ifdef __linux__
    1.57 ++.section .note.GNU-stack; .previous
    1.58 ++#endif
    1.59 +diff -durN gcc-4.3.3.orig/gcc/config/ia64/crtn.asm gcc-4.3.3/gcc/config/ia64/crtn.asm
    1.60 +--- gcc-4.3.3.orig/gcc/config/ia64/crtn.asm	2005-06-25 03:22:41.000000000 +0200
    1.61 ++++ gcc-4.3.3/gcc/config/ia64/crtn.asm	2009-01-27 22:19:39.000000000 +0100
    1.62 +@@ -54,3 +54,7 @@
    1.63 + 	br.ret.sptk.many b0
    1.64 + 
    1.65 + # end of crtn.asm
    1.66 ++
    1.67 ++#ifdef __linux__
    1.68 ++.section .note.GNU-stack; .previous
    1.69 ++#endif
    1.70 +diff -durN gcc-4.3.3.orig/gcc/config/ia64/lib1funcs.asm gcc-4.3.3/gcc/config/ia64/lib1funcs.asm
    1.71 +--- gcc-4.3.3.orig/gcc/config/ia64/lib1funcs.asm	2005-09-27 02:52:24.000000000 +0200
    1.72 ++++ gcc-4.3.3/gcc/config/ia64/lib1funcs.asm	2009-01-27 22:19:39.000000000 +0100
    1.73 +@@ -792,3 +792,7 @@
    1.74 + 	}
    1.75 + 	.endp __floattitf
    1.76 + #endif
    1.77 ++
    1.78 ++#ifdef __linux__
    1.79 ++.section .note.GNU-stack; .previous
    1.80 ++#endif
    1.81 +diff -durN gcc-4.3.3.orig/gcc/config/ia64/linux.h gcc-4.3.3/gcc/config/ia64/linux.h
    1.82 +--- gcc-4.3.3.orig/gcc/config/ia64/linux.h	2006-12-12 16:15:19.000000000 +0100
    1.83 ++++ gcc-4.3.3/gcc/config/ia64/linux.h	2009-01-27 22:19:39.000000000 +0100
    1.84 +@@ -5,6 +5,8 @@
    1.85 + 
    1.86 + #define TARGET_VERSION fprintf (stderr, " (IA-64) Linux");
    1.87 + 
    1.88 ++#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
    1.89 ++
    1.90 + /* This is for -profile to use -lc_p instead of -lc.  */
    1.91 + #undef CC1_SPEC
    1.92 + #define CC1_SPEC "%{profile:-p} %{G*}"
    1.93 +diff -durN gcc-4.3.3.orig/gcc/config/rs6000/ppc-asm.h gcc-4.3.3/gcc/config/rs6000/ppc-asm.h
    1.94 +--- gcc-4.3.3.orig/gcc/config/rs6000/ppc-asm.h	2003-06-04 18:44:51.000000000 +0200
    1.95 ++++ gcc-4.3.3/gcc/config/rs6000/ppc-asm.h	2009-01-27 22:19:39.000000000 +0100
    1.96 +@@ -158,7 +158,7 @@
    1.97 + 	.size FUNC_NAME(name),GLUE(.L,name)-FUNC_NAME(name)
    1.98 + #endif
    1.99 + 
   1.100 +-#if defined __linux__ && !defined __powerpc64__
   1.101 ++#if defined __linux__
   1.102 + 	.section .note.GNU-stack
   1.103 + 	.previous
   1.104 + #endif