patches/gcc/4.4.4/250-ia64-noteGNUstack.patch
author Remy Bohmer <linux@bohmer.net>
Sun Jul 11 22:23:34 2010 +0200 (2010-07-11)
changeset 2021 3e52a1510f87
child 2148 ada9128c98b8
permissions -rw-r--r--
debug/gdb: Fix compilation for Mingw hosts

GDB requires PDcurses instead of ncurses while running on Windows.
So, do not always compile ncurses in case GDB needs to build.

PDcurses is provided by an earlier build step and is not described in
this file.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
[yann.morin.1998@anciense.nib.fr: we already have a way to detect ncurses usage]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 diff -durN gcc-4.4.0.orig/gcc/config/ia64/crtbegin.asm gcc-4.4.0/gcc/config/ia64/crtbegin.asm
     2 
     3 diff -durN gcc-4.4.4.orig/gcc/config/ia64/crtbegin.asm gcc-4.4.4/gcc/config/ia64/crtbegin.asm
     4 --- gcc-4.4.4.orig/gcc/config/ia64/crtbegin.asm	2009-04-10 01:23:07.000000000 +0200
     5 +++ gcc-4.4.4/gcc/config/ia64/crtbegin.asm	2010-05-16 19:13:59.000000000 +0200
     6 @@ -252,3 +252,7 @@
     7  .weak __cxa_finalize
     8  #endif
     9  .weak _Jv_RegisterClasses
    10 +
    11 +#ifdef __linux__
    12 +.section .note.GNU-stack; .previous
    13 +#endif
    14 diff -durN gcc-4.4.4.orig/gcc/config/ia64/crtend.asm gcc-4.4.4/gcc/config/ia64/crtend.asm
    15 --- gcc-4.4.4.orig/gcc/config/ia64/crtend.asm	2009-04-10 01:23:07.000000000 +0200
    16 +++ gcc-4.4.4/gcc/config/ia64/crtend.asm	2010-05-16 19:13:59.000000000 +0200
    17 @@ -119,3 +119,7 @@
    18  
    19  	br.ret.sptk.many rp
    20  	.endp __do_global_ctors_aux
    21 +
    22 +#ifdef __linux__
    23 +.section .note.GNU-stack; .previous
    24 +#endif
    25 diff -durN gcc-4.4.4.orig/gcc/config/ia64/crti.asm gcc-4.4.4/gcc/config/ia64/crti.asm
    26 --- gcc-4.4.4.orig/gcc/config/ia64/crti.asm	2009-04-10 01:23:07.000000000 +0200
    27 +++ gcc-4.4.4/gcc/config/ia64/crti.asm	2010-05-16 19:13:59.000000000 +0200
    28 @@ -51,3 +51,7 @@
    29  	.body
    30  
    31  # end of crti.asm
    32 +
    33 +#ifdef __linux__
    34 +.section .note.GNU-stack; .previous
    35 +#endif
    36 diff -durN gcc-4.4.4.orig/gcc/config/ia64/crtn.asm gcc-4.4.4/gcc/config/ia64/crtn.asm
    37 --- gcc-4.4.4.orig/gcc/config/ia64/crtn.asm	2009-04-10 01:23:07.000000000 +0200
    38 +++ gcc-4.4.4/gcc/config/ia64/crtn.asm	2010-05-16 19:13:59.000000000 +0200
    39 @@ -41,3 +41,7 @@
    40  	br.ret.sptk.many b0
    41  
    42  # end of crtn.asm
    43 +
    44 +#ifdef __linux__
    45 +.section .note.GNU-stack; .previous
    46 +#endif
    47 diff -durN gcc-4.4.4.orig/gcc/config/ia64/lib1funcs.asm gcc-4.4.4/gcc/config/ia64/lib1funcs.asm
    48 --- gcc-4.4.4.orig/gcc/config/ia64/lib1funcs.asm	2009-04-10 01:23:07.000000000 +0200
    49 +++ gcc-4.4.4/gcc/config/ia64/lib1funcs.asm	2010-05-16 19:13:59.000000000 +0200
    50 @@ -793,3 +793,7 @@
    51  	.endp __floattitf
    52  #endif
    53  #endif
    54 +
    55 +#ifdef __linux__
    56 +.section .note.GNU-stack; .previous
    57 +#endif
    58 diff -durN gcc-4.4.4.orig/gcc/config/ia64/linux.h gcc-4.4.4/gcc/config/ia64/linux.h
    59 --- gcc-4.4.4.orig/gcc/config/ia64/linux.h	2009-02-12 17:30:53.000000000 +0100
    60 +++ gcc-4.4.4/gcc/config/ia64/linux.h	2010-05-16 19:13:59.000000000 +0200
    61 @@ -5,6 +5,8 @@
    62  
    63  #define TARGET_VERSION fprintf (stderr, " (IA-64) Linux");
    64  
    65 +#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
    66 +
    67  /* This is for -profile to use -lc_p instead of -lc.  */
    68  #undef CC1_SPEC
    69  #define CC1_SPEC "%{profile:-p} %{G*}"
    70 diff -durN gcc-4.4.4.orig/gcc/config/rs6000/ppc-asm.h gcc-4.4.4/gcc/config/rs6000/ppc-asm.h
    71 --- gcc-4.4.4.orig/gcc/config/rs6000/ppc-asm.h	2008-10-13 17:44:26.000000000 +0200
    72 +++ gcc-4.4.4/gcc/config/rs6000/ppc-asm.h	2010-05-16 19:13:59.000000000 +0200
    73 @@ -172,7 +172,7 @@
    74  	.size FUNC_NAME(name),GLUE(.L,name)-FUNC_NAME(name)
    75  #endif
    76  
    77 -#if defined __linux__ && !defined __powerpc64__
    78 +#if defined __linux__
    79  	.section .note.GNU-stack
    80  	.previous
    81  #endif