source: scripts/patch/gcc/4.4.0/30-note-gnu-stack.patch@ 79071fa

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 79071fa was 76c9fbb, checked in by Jim Gifford <clfs@…>, 15 years ago

Modifications to GCC to fix PPC Build Issues

  • Property mode set to 100644
File size: 7.2 KB
  • boehm-gc/ia64_save_regs_in_stack.s

    # DP: Add .note.GNU-stack sections for gcc's crt files, libffi and boehm-gc
    # DP: Taken from FC.
    
    gcc/
    
    2004-09-20  Jakub Jelinek  <jakub@redhat.com>
    
    	* config/rs6000/ppc-asm.h: Add .note.GNU-stack section also
    	on ppc64-linux.
    
    	* config/ia64/lib1funcs.asm: Add .note.GNU-stack section on
    	ia64-linux.
    	* config/ia64/crtbegin.asm: Likewise.
    	* config/ia64/crtend.asm: Likewise.
    	* config/ia64/crti.asm: Likewise.
    	* config/ia64/crtn.asm: Likewise.
    
    2004-05-14  Jakub Jelinek  <jakub@redhat.com>
    
    	* config/ia64/linux.h (TARGET_ASM_FILE_END): Define.
    
    boehm-gc/
    
    2005-02-08  Jakub Jelinek  <jakub@redhat.com>
    
    	* ia64_save_regs_in_stack.s: Moved to...
    	* ia64_save_regs_in_stack.S: ... this.  Add .note.GNU-stack
    	on Linux.
    
    libffi/
    
    2007-05-11  Daniel Jacobowitz  <dan@debian.org>
    
    	* src/arm/sysv.S: Fix ARM comment marker.
    
    2005-02-08  Jakub Jelinek  <jakub@redhat.com>
    
    	* src/alpha/osf.S: Add .note.GNU-stack on Linux.
    	* src/s390/sysv.S: Likewise.
    	* src/powerpc/linux64.S: Likewise.
    	* src/powerpc/linux64_closure.S: Likewise.
    	* src/powerpc/ppc_closure.S: Likewise.
    	* src/powerpc/sysv.S: Likewise.
    	* src/x86/unix64.S: Likewise.
    	* src/x86/sysv.S: Likewise.
    	* src/sparc/v8.S: Likewise.
    	* src/sparc/v9.S: Likewise.
    	* src/m68k/sysv.S: Likewise.
    	* src/ia64/unix.S: Likewise.
    	* src/arm/sysv.S: Likewise.
    
    diff -Naur gcc-4.4.0.orig/boehm-gc/ia64_save_regs_in_stack.s gcc-4.4.0/boehm-gc/ia64_save_regs_in_stack.s
    old new  
    1         .text
    2         .align 16
    3         .global GC_save_regs_in_stack
    4         .proc GC_save_regs_in_stack
    5 GC_save_regs_in_stack:
    6         .body
    7         flushrs
    8         ;;
    9         mov r8=ar.bsp
    10         br.ret.sptk.few rp
    11         .endp GC_save_regs_in_stack
    12 
  • boehm-gc/ia64_save_regs_in_stack.S

    diff -Naur gcc-4.4.0.orig/boehm-gc/ia64_save_regs_in_stack.S gcc-4.4.0/boehm-gc/ia64_save_regs_in_stack.S
    old new  
     1        .text
     2        .align 16
     3        .global GC_save_regs_in_stack
     4        .proc GC_save_regs_in_stack
     5GC_save_regs_in_stack:
     6        .body
     7        flushrs
     8        ;;
     9        mov r8=ar.bsp
     10        br.ret.sptk.few rp
     11        .endp GC_save_regs_in_stack
     12
     13#ifdef __linux__
     14        .section .note.GNU-stack,"",@progbits
     15#endif
  • gcc/config/ia64/crtbegin.asm

    diff -Naur gcc-4.4.0.orig/gcc/config/ia64/crtbegin.asm gcc-4.4.0/gcc/config/ia64/crtbegin.asm
    old new  
    252252.weak __cxa_finalize
    253253#endif
    254254.weak _Jv_RegisterClasses
     255
     256#ifdef __linux__
     257.section .note.GNU-stack; .previous
     258#endif
  • gcc/config/ia64/crtend.asm

    diff -Naur gcc-4.4.0.orig/gcc/config/ia64/crtend.asm gcc-4.4.0/gcc/config/ia64/crtend.asm
    old new  
    119119
    120120        br.ret.sptk.many rp
    121121        .endp __do_global_ctors_aux
     122
     123#ifdef __linux__
     124.section .note.GNU-stack; .previous
     125#endif
  • gcc/config/ia64/crti.asm

    diff -Naur gcc-4.4.0.orig/gcc/config/ia64/crti.asm gcc-4.4.0/gcc/config/ia64/crti.asm
    old new  
    5151        .body
    5252
    5353# end of crti.asm
     54
     55#ifdef __linux__
     56.section .note.GNU-stack; .previous
     57#endif
  • gcc/config/ia64/crtn.asm

    diff -Naur gcc-4.4.0.orig/gcc/config/ia64/crtn.asm gcc-4.4.0/gcc/config/ia64/crtn.asm
    old new  
    4141        br.ret.sptk.many b0
    4242
    4343# end of crtn.asm
     44
     45#ifdef __linux__
     46.section .note.GNU-stack; .previous
     47#endif
  • gcc/config/ia64/lib1funcs.asm

    diff -Naur gcc-4.4.0.orig/gcc/config/ia64/lib1funcs.asm gcc-4.4.0/gcc/config/ia64/lib1funcs.asm
    old new  
    793793        .endp __floattitf
    794794#endif
    795795#endif
     796
     797#ifdef __linux__
     798.section .note.GNU-stack; .previous
     799#endif
  • gcc/config/ia64/linux.h

    diff -Naur gcc-4.4.0.orig/gcc/config/ia64/linux.h gcc-4.4.0/gcc/config/ia64/linux.h
    old new  
    55
    66#define TARGET_VERSION fprintf (stderr, " (IA-64) Linux");
    77
     8#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
     9
    810/* This is for -profile to use -lc_p instead of -lc.  */
    911#undef CC1_SPEC
    1012#define CC1_SPEC "%{profile:-p} %{G*}"
  • gcc/config/rs6000/ppc-asm.h

    diff -Naur gcc-4.4.0.orig/gcc/config/rs6000/ppc-asm.h gcc-4.4.0/gcc/config/rs6000/ppc-asm.h
    old new  
    172172        .size FUNC_NAME(name),GLUE(.L,name)-FUNC_NAME(name)
    173173#endif
    174174
    175 #if defined __linux__ && !defined __powerpc64__
     175#if defined __linux__
    176176        .section .note.GNU-stack
    177177        .previous
    178178#endif
  • libffi/src/ia64/unix.S

    diff -Naur gcc-4.4.0.orig/libffi/src/ia64/unix.S gcc-4.4.0/libffi/src/ia64/unix.S
    old new  
    553553        data8   @pcrel(.Lld_hfa_float)          // FFI_IA64_TYPE_HFA_FLOAT
    554554        data8   @pcrel(.Lld_hfa_double)         // FFI_IA64_TYPE_HFA_DOUBLE
    555555        data8   @pcrel(.Lld_hfa_ldouble)        // FFI_IA64_TYPE_HFA_LDOUBLE
     556
     557#if defined __ELF__ && defined __linux__
     558        .section        .note.GNU-stack,"",@progbits
     559#endif
  • libffi/src/powerpc/linux64_closure.S

    diff -Naur gcc-4.4.0.orig/libffi/src/powerpc/linux64_closure.S gcc-4.4.0/libffi/src/powerpc/linux64_closure.S
    old new  
    204204        .align 3
    205205.LEFDE1:
    206206#endif
     207
     208#if defined __ELF__ && defined __linux__
     209        .section        .note.GNU-stack,"",@progbits
     210#endif
  • libffi/src/powerpc/linux64.S

    diff -Naur gcc-4.4.0.orig/libffi/src/powerpc/linux64.S gcc-4.4.0/libffi/src/powerpc/linux64.S
    old new  
    179179        .align 3
    180180.LEFDE1:
    181181#endif
     182
     183#if defined __ELF__ && defined __linux__
     184        .section        .note.GNU-stack,"",@progbits
     185#endif
  • src/boehm-gc/ia64_save_regs_in_stack.S

    diff -Naur gcc-4.4.0.orig/src/boehm-gc/ia64_save_regs_in_stack.S gcc-4.4.0/src/boehm-gc/ia64_save_regs_in_stack.S
    old new  
     1        .text
     2        .align 16
     3        .global GC_save_regs_in_stack
     4        .proc GC_save_regs_in_stack
     5GC_save_regs_in_stack:
     6        .body
     7        flushrs
     8        ;;
     9        mov r8=ar.bsp
     10        br.ret.sptk.few rp
     11        .endp GC_save_regs_in_stack
     12
     13#ifdef __linux__
     14        .section .note.GNU-stack,"",@progbits
     15#endif
Note: See TracBrowser for help on using the repository browser.