source: scripts/patch/gcc/4.4.0/30-note-gnu-stack.patch@ 8abdee4

clfs-1.2
Last change on this file since 8abdee4 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
RevLine 
[76c9fbb]1# DP: Add .note.GNU-stack sections for gcc's crt files, libffi and boehm-gc
2# DP: Taken from FC.
3
4gcc/
5
62004-09-20 Jakub Jelinek <jakub@redhat.com>
7
8 * config/rs6000/ppc-asm.h: Add .note.GNU-stack section also
9 on ppc64-linux.
10
11 * config/ia64/lib1funcs.asm: Add .note.GNU-stack section on
12 ia64-linux.
13 * config/ia64/crtbegin.asm: Likewise.
14 * config/ia64/crtend.asm: Likewise.
15 * config/ia64/crti.asm: Likewise.
16 * config/ia64/crtn.asm: Likewise.
17
182004-05-14 Jakub Jelinek <jakub@redhat.com>
19
20 * config/ia64/linux.h (TARGET_ASM_FILE_END): Define.
21
22boehm-gc/
23
242005-02-08 Jakub Jelinek <jakub@redhat.com>
25
26 * ia64_save_regs_in_stack.s: Moved to...
27 * ia64_save_regs_in_stack.S: ... this. Add .note.GNU-stack
28 on Linux.
29
30libffi/
31
322007-05-11 Daniel Jacobowitz <dan@debian.org>
33
34 * src/arm/sysv.S: Fix ARM comment marker.
35
362005-02-08 Jakub Jelinek <jakub@redhat.com>
37
38 * src/alpha/osf.S: Add .note.GNU-stack on Linux.
39 * src/s390/sysv.S: Likewise.
40 * src/powerpc/linux64.S: Likewise.
41 * src/powerpc/linux64_closure.S: Likewise.
42 * src/powerpc/ppc_closure.S: Likewise.
43 * src/powerpc/sysv.S: Likewise.
44 * src/x86/unix64.S: Likewise.
45 * src/x86/sysv.S: Likewise.
46 * src/sparc/v8.S: Likewise.
47 * src/sparc/v9.S: Likewise.
48 * src/m68k/sysv.S: Likewise.
49 * src/ia64/unix.S: Likewise.
50 * src/arm/sysv.S: Likewise.
51
52diff -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
53--- gcc-4.4.0.orig/boehm-gc/ia64_save_regs_in_stack.s 2001-10-14 21:57:59.000000000 -0700
54+++ gcc-4.4.0/boehm-gc/ia64_save_regs_in_stack.s 2009-07-14 10:45:25.000000000 -0700
55@@ -1,12 +0,0 @@
56- .text
57- .align 16
58- .global GC_save_regs_in_stack
59- .proc GC_save_regs_in_stack
60-GC_save_regs_in_stack:
61- .body
62- flushrs
63- ;;
64- mov r8=ar.bsp
65- br.ret.sptk.few rp
66- .endp GC_save_regs_in_stack
67-
68diff -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
69--- gcc-4.4.0.orig/boehm-gc/ia64_save_regs_in_stack.S 1969-12-31 16:00:00.000000000 -0800
70+++ gcc-4.4.0/boehm-gc/ia64_save_regs_in_stack.S 2009-07-14 10:45:25.000000000 -0700
71@@ -0,0 +1,15 @@
72+ .text
73+ .align 16
74+ .global GC_save_regs_in_stack
75+ .proc GC_save_regs_in_stack
76+GC_save_regs_in_stack:
77+ .body
78+ flushrs
79+ ;;
80+ mov r8=ar.bsp
81+ br.ret.sptk.few rp
82+ .endp GC_save_regs_in_stack
83+
84+#ifdef __linux__
85+ .section .note.GNU-stack,"",@progbits
86+#endif
87diff -Naur gcc-4.4.0.orig/gcc/config/ia64/crtbegin.asm gcc-4.4.0/gcc/config/ia64/crtbegin.asm
88--- gcc-4.4.0.orig/gcc/config/ia64/crtbegin.asm 2009-04-09 16:23:07.000000000 -0700
89+++ gcc-4.4.0/gcc/config/ia64/crtbegin.asm 2009-07-14 10:45:25.000000000 -0700
90@@ -252,3 +252,7 @@
91 .weak __cxa_finalize
92 #endif
93 .weak _Jv_RegisterClasses
94+
95+#ifdef __linux__
96+.section .note.GNU-stack; .previous
97+#endif
98diff -Naur gcc-4.4.0.orig/gcc/config/ia64/crtend.asm gcc-4.4.0/gcc/config/ia64/crtend.asm
99--- gcc-4.4.0.orig/gcc/config/ia64/crtend.asm 2009-04-09 16:23:07.000000000 -0700
100+++ gcc-4.4.0/gcc/config/ia64/crtend.asm 2009-07-14 10:45:25.000000000 -0700
101@@ -119,3 +119,7 @@
102
103 br.ret.sptk.many rp
104 .endp __do_global_ctors_aux
105+
106+#ifdef __linux__
107+.section .note.GNU-stack; .previous
108+#endif
109diff -Naur gcc-4.4.0.orig/gcc/config/ia64/crti.asm gcc-4.4.0/gcc/config/ia64/crti.asm
110--- gcc-4.4.0.orig/gcc/config/ia64/crti.asm 2009-04-09 16:23:07.000000000 -0700
111+++ gcc-4.4.0/gcc/config/ia64/crti.asm 2009-07-14 10:45:25.000000000 -0700
112@@ -51,3 +51,7 @@
113 .body
114
115 # end of crti.asm
116+
117+#ifdef __linux__
118+.section .note.GNU-stack; .previous
119+#endif
120diff -Naur gcc-4.4.0.orig/gcc/config/ia64/crtn.asm gcc-4.4.0/gcc/config/ia64/crtn.asm
121--- gcc-4.4.0.orig/gcc/config/ia64/crtn.asm 2009-04-09 16:23:07.000000000 -0700
122+++ gcc-4.4.0/gcc/config/ia64/crtn.asm 2009-07-14 10:45:25.000000000 -0700
123@@ -41,3 +41,7 @@
124 br.ret.sptk.many b0
125
126 # end of crtn.asm
127+
128+#ifdef __linux__
129+.section .note.GNU-stack; .previous
130+#endif
131diff -Naur gcc-4.4.0.orig/gcc/config/ia64/lib1funcs.asm gcc-4.4.0/gcc/config/ia64/lib1funcs.asm
132--- gcc-4.4.0.orig/gcc/config/ia64/lib1funcs.asm 2009-04-09 16:23:07.000000000 -0700
133+++ gcc-4.4.0/gcc/config/ia64/lib1funcs.asm 2009-07-14 10:45:25.000000000 -0700
134@@ -793,3 +793,7 @@
135 .endp __floattitf
136 #endif
137 #endif
138+
139+#ifdef __linux__
140+.section .note.GNU-stack; .previous
141+#endif
142diff -Naur gcc-4.4.0.orig/gcc/config/ia64/linux.h gcc-4.4.0/gcc/config/ia64/linux.h
143--- gcc-4.4.0.orig/gcc/config/ia64/linux.h 2009-02-12 08:30:53.000000000 -0800
144+++ gcc-4.4.0/gcc/config/ia64/linux.h 2009-07-14 10:45:25.000000000 -0700
145@@ -5,6 +5,8 @@
146
147 #define TARGET_VERSION fprintf (stderr, " (IA-64) Linux");
148
149+#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
150+
151 /* This is for -profile to use -lc_p instead of -lc. */
152 #undef CC1_SPEC
153 #define CC1_SPEC "%{profile:-p} %{G*}"
154diff -Naur gcc-4.4.0.orig/gcc/config/rs6000/ppc-asm.h gcc-4.4.0/gcc/config/rs6000/ppc-asm.h
155--- gcc-4.4.0.orig/gcc/config/rs6000/ppc-asm.h 2008-10-13 08:44:26.000000000 -0700
156+++ gcc-4.4.0/gcc/config/rs6000/ppc-asm.h 2009-07-14 10:45:25.000000000 -0700
157@@ -172,7 +172,7 @@
158 .size FUNC_NAME(name),GLUE(.L,name)-FUNC_NAME(name)
159 #endif
160
161-#if defined __linux__ && !defined __powerpc64__
162+#if defined __linux__
163 .section .note.GNU-stack
164 .previous
165 #endif
166diff -Naur gcc-4.4.0.orig/libffi/src/ia64/unix.S gcc-4.4.0/libffi/src/ia64/unix.S
167--- gcc-4.4.0.orig/libffi/src/ia64/unix.S 2005-03-30 13:49:19.000000000 -0800
168+++ gcc-4.4.0/libffi/src/ia64/unix.S 2009-07-14 10:45:25.000000000 -0700
169@@ -553,3 +553,7 @@
170 data8 @pcrel(.Lld_hfa_float) // FFI_IA64_TYPE_HFA_FLOAT
171 data8 @pcrel(.Lld_hfa_double) // FFI_IA64_TYPE_HFA_DOUBLE
172 data8 @pcrel(.Lld_hfa_ldouble) // FFI_IA64_TYPE_HFA_LDOUBLE
173+
174+#if defined __ELF__ && defined __linux__
175+ .section .note.GNU-stack,"",@progbits
176+#endif
177diff -Naur gcc-4.4.0.orig/libffi/src/powerpc/linux64_closure.S gcc-4.4.0/libffi/src/powerpc/linux64_closure.S
178--- gcc-4.4.0.orig/libffi/src/powerpc/linux64_closure.S 2005-08-11 14:18:24.000000000 -0700
179+++ gcc-4.4.0/libffi/src/powerpc/linux64_closure.S 2009-07-14 10:45:25.000000000 -0700
180@@ -204,3 +204,7 @@
181 .align 3
182 .LEFDE1:
183 #endif
184+
185+#if defined __ELF__ && defined __linux__
186+ .section .note.GNU-stack,"",@progbits
187+#endif
188diff -Naur gcc-4.4.0.orig/libffi/src/powerpc/linux64.S gcc-4.4.0/libffi/src/powerpc/linux64.S
189--- gcc-4.4.0.orig/libffi/src/powerpc/linux64.S 2007-11-16 15:24:53.000000000 -0800
190+++ gcc-4.4.0/libffi/src/powerpc/linux64.S 2009-07-14 10:45:25.000000000 -0700
191@@ -179,3 +179,7 @@
192 .align 3
193 .LEFDE1:
194 #endif
195+
196+#if defined __ELF__ && defined __linux__
197+ .section .note.GNU-stack,"",@progbits
198+#endif
199diff -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
200--- gcc-4.4.0.orig/src/boehm-gc/ia64_save_regs_in_stack.S 1969-12-31 16:00:00.000000000 -0800
201+++ gcc-4.4.0/src/boehm-gc/ia64_save_regs_in_stack.S 2009-07-14 10:45:19.000000000 -0700
202@@ -0,0 +1,15 @@
203+ .text
204+ .align 16
205+ .global GC_save_regs_in_stack
206+ .proc GC_save_regs_in_stack
207+GC_save_regs_in_stack:
208+ .body
209+ flushrs
210+ ;;
211+ mov r8=ar.bsp
212+ br.ret.sptk.few rp
213+ .endp GC_save_regs_in_stack
214+
215+#ifdef __linux__
216+ .section .note.GNU-stack,"",@progbits
217+#endif
Note: See TracBrowser for help on using the repository browser.