1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/gcc/4.4.3/250-ia64-noteGNUstack.patch Sun May 08 11:02:18 2011 +0200
1.3 @@ -0,0 +1,79 @@
1.4 +diff -durN gcc-4.4.0.orig/gcc/config/ia64/crtbegin.asm gcc-4.4.0/gcc/config/ia64/crtbegin.asm
1.5 +--- gcc-4.4.0.orig/gcc/config/ia64/crtbegin.asm 2009-04-10 01:23:07.000000000 +0200
1.6 ++++ gcc-4.4.0/gcc/config/ia64/crtbegin.asm 2009-05-27 21:38:37.000000000 +0200
1.7 +@@ -252,3 +252,7 @@
1.8 + .weak __cxa_finalize
1.9 + #endif
1.10 + .weak _Jv_RegisterClasses
1.11 ++
1.12 ++#ifdef __linux__
1.13 ++.section .note.GNU-stack; .previous
1.14 ++#endif
1.15 +diff -durN gcc-4.4.0.orig/gcc/config/ia64/crtend.asm gcc-4.4.0/gcc/config/ia64/crtend.asm
1.16 +--- gcc-4.4.0.orig/gcc/config/ia64/crtend.asm 2009-04-10 01:23:07.000000000 +0200
1.17 ++++ gcc-4.4.0/gcc/config/ia64/crtend.asm 2009-05-27 21:38:37.000000000 +0200
1.18 +@@ -119,3 +119,7 @@
1.19 +
1.20 + br.ret.sptk.many rp
1.21 + .endp __do_global_ctors_aux
1.22 ++
1.23 ++#ifdef __linux__
1.24 ++.section .note.GNU-stack; .previous
1.25 ++#endif
1.26 +diff -durN gcc-4.4.0.orig/gcc/config/ia64/crti.asm gcc-4.4.0/gcc/config/ia64/crti.asm
1.27 +--- gcc-4.4.0.orig/gcc/config/ia64/crti.asm 2009-04-10 01:23:07.000000000 +0200
1.28 ++++ gcc-4.4.0/gcc/config/ia64/crti.asm 2009-05-27 21:38:37.000000000 +0200
1.29 +@@ -51,3 +51,7 @@
1.30 + .body
1.31 +
1.32 + # end of crti.asm
1.33 ++
1.34 ++#ifdef __linux__
1.35 ++.section .note.GNU-stack; .previous
1.36 ++#endif
1.37 +diff -durN gcc-4.4.0.orig/gcc/config/ia64/crtn.asm gcc-4.4.0/gcc/config/ia64/crtn.asm
1.38 +--- gcc-4.4.0.orig/gcc/config/ia64/crtn.asm 2009-04-10 01:23:07.000000000 +0200
1.39 ++++ gcc-4.4.0/gcc/config/ia64/crtn.asm 2009-05-27 21:38:37.000000000 +0200
1.40 +@@ -41,3 +41,7 @@
1.41 + br.ret.sptk.many b0
1.42 +
1.43 + # end of crtn.asm
1.44 ++
1.45 ++#ifdef __linux__
1.46 ++.section .note.GNU-stack; .previous
1.47 ++#endif
1.48 +diff -durN gcc-4.4.0.orig/gcc/config/ia64/lib1funcs.asm gcc-4.4.0/gcc/config/ia64/lib1funcs.asm
1.49 +--- gcc-4.4.0.orig/gcc/config/ia64/lib1funcs.asm 2009-04-10 01:23:07.000000000 +0200
1.50 ++++ gcc-4.4.0/gcc/config/ia64/lib1funcs.asm 2009-05-27 21:38:37.000000000 +0200
1.51 +@@ -793,3 +793,7 @@
1.52 + .endp __floattitf
1.53 + #endif
1.54 + #endif
1.55 ++
1.56 ++#ifdef __linux__
1.57 ++.section .note.GNU-stack; .previous
1.58 ++#endif
1.59 +diff -durN gcc-4.4.0.orig/gcc/config/ia64/linux.h gcc-4.4.0/gcc/config/ia64/linux.h
1.60 +--- gcc-4.4.0.orig/gcc/config/ia64/linux.h 2009-02-12 17:30:53.000000000 +0100
1.61 ++++ gcc-4.4.0/gcc/config/ia64/linux.h 2009-05-27 21:38:37.000000000 +0200
1.62 +@@ -5,6 +5,8 @@
1.63 +
1.64 + #define TARGET_VERSION fprintf (stderr, " (IA-64) Linux");
1.65 +
1.66 ++#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
1.67 ++
1.68 + /* This is for -profile to use -lc_p instead of -lc. */
1.69 + #undef CC1_SPEC
1.70 + #define CC1_SPEC "%{profile:-p} %{G*}"
1.71 +diff -durN gcc-4.4.0.orig/gcc/config/rs6000/ppc-asm.h gcc-4.4.0/gcc/config/rs6000/ppc-asm.h
1.72 +--- gcc-4.4.0.orig/gcc/config/rs6000/ppc-asm.h 2008-10-13 17:44:26.000000000 +0200
1.73 ++++ gcc-4.4.0/gcc/config/rs6000/ppc-asm.h 2009-05-27 21:38:37.000000000 +0200
1.74 +@@ -172,7 +172,7 @@
1.75 + .size FUNC_NAME(name),GLUE(.L,name)-FUNC_NAME(name)
1.76 + #endif
1.77 +
1.78 +-#if defined __linux__ && !defined __powerpc64__
1.79 ++#if defined __linux__
1.80 + .section .note.GNU-stack
1.81 + .previous
1.82 + #endif