patches/gcc/4.4.4/250-ia64-noteGNUstack.patch
author Remy Bohmer <linux@bohmer.net>
Thu May 27 23:18:19 2010 +0200 (2010-05-27)
changeset 2060 51e4597b07fc
child 2148 ada9128c98b8
permissions -rw-r--r--
scripts: add option to strip all toolchain executables

To reduce filesizes of the toolchain and even improve build times
of projects to be build with this toolchain it is usefull to strip
the delivered toolchain executables. Since it is not likely that we
will debug the toolchain executables itself we do not need the
debug information inside the executables itself.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
     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