~angelsl/ubuntu/wily/gcc-5/mips-cross

« back to all changes in this revision

Viewing changes to debian/patches/note-gnu-stack.diff

  • Committer: angelsl
  • Date: 2015-10-30 03:30:35 UTC
  • Revision ID: angelsl-20151030033035-rmug41zm8hyjgisg
Original import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Add .note.GNU-stack sections for gcc's crt files, libffi and boehm-gc
 
2
# DP: Taken from FC.
 
3
 
 
4
gcc/
 
5
 
 
6
2004-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
 
 
18
2004-05-14  Jakub Jelinek  <jakub@redhat.com>
 
19
 
 
20
        * config/ia64/linux.h (TARGET_ASM_FILE_END): Define.
 
21
 
 
22
boehm-gc/
 
23
 
 
24
2005-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
 
 
30
libffi/
 
31
 
 
32
2007-05-11  Daniel Jacobowitz  <dan@debian.org>
 
33
 
 
34
        * src/arm/sysv.S: Fix ARM comment marker.
 
35
 
 
36
2005-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
 
 
52
---
 
53
 boehm-gc/ia64_save_regs_in_stack.S   |   15 +++++++++++++++
 
54
 boehm-gc/ia64_save_regs_in_stack.s   |   12 ------------
 
55
 gcc/config/ia64/linux.h              |    3 +++
 
56
 gcc/config/rs6000/ppc-asm.h          |    2 +-
 
57
 libgcc/config/ia64/crtbegin.S        |    4 ++++
 
58
 libgcc/config/ia64/crtend.S          |    4 ++++
 
59
 libgcc/config/ia64/crti.S            |    4 ++++
 
60
 libgcc/config/ia64/crtn.S            |    4 ++++
 
61
 libgcc/config/ia64/lib1funcs.S       |    4 ++++
 
62
 9 files changed, 39 insertions(+), 13 deletions(-)
 
63
 
 
64
Index: b/src/boehm-gc/ia64_save_regs_in_stack.s
 
65
===================================================================
 
66
--- a/src/boehm-gc/ia64_save_regs_in_stack.s
 
67
+++ /dev/null
 
68
@@ -1,12 +0,0 @@
 
69
-        .text
 
70
-        .align 16
 
71
-        .global GC_save_regs_in_stack
 
72
-        .proc GC_save_regs_in_stack
 
73
-GC_save_regs_in_stack:
 
74
-        .body
 
75
-        flushrs
 
76
-        ;;
 
77
-        mov r8=ar.bsp
 
78
-        br.ret.sptk.few rp
 
79
-        .endp GC_save_regs_in_stack
 
80
-
 
81
Index: b/src/boehm-gc/ia64_save_regs_in_stack.S
 
82
===================================================================
 
83
--- /dev/null
 
84
+++ b/src/boehm-gc/ia64_save_regs_in_stack.S
 
85
@@ -0,0 +1,15 @@
 
86
+        .text
 
87
+        .align 16
 
88
+        .global GC_save_regs_in_stack
 
89
+        .proc GC_save_regs_in_stack
 
90
+GC_save_regs_in_stack:
 
91
+        .body
 
92
+        flushrs
 
93
+        ;;
 
94
+        mov r8=ar.bsp
 
95
+        br.ret.sptk.few rp
 
96
+        .endp GC_save_regs_in_stack
 
97
+
 
98
+#ifdef __linux__
 
99
+       .section .note.GNU-stack,"",@progbits
 
100
+#endif
 
101
Index: b/src/libgcc/config/ia64/crtbegin.S
 
102
===================================================================
 
103
--- a/src/libgcc/config/ia64/crtbegin.S
 
104
+++ b/src/libgcc/config/ia64/crtbegin.S
 
105
@@ -252,3 +252,7 @@ __do_jv_register_classes:
 
106
 .weak __cxa_finalize
 
107
 #endif
 
108
 .weak _Jv_RegisterClasses
 
109
+
 
110
+#ifdef __linux__
 
111
+.section .note.GNU-stack; .previous
 
112
+#endif
 
113
Index: b/src/libgcc/config/ia64/crtend.S
 
114
===================================================================
 
115
--- a/src/libgcc/config/ia64/crtend.S
 
116
+++ b/src/libgcc/config/ia64/crtend.S
 
117
@@ -119,3 +119,7 @@ __do_global_ctors_aux:
 
118
 
 
119
        br.ret.sptk.many rp
 
120
        .endp __do_global_ctors_aux
 
121
+
 
122
+#ifdef __linux__
 
123
+.section .note.GNU-stack; .previous
 
124
+#endif
 
125
Index: b/src/libgcc/config/ia64/crti.S
 
126
===================================================================
 
127
--- a/src/libgcc/config/ia64/crti.S
 
128
+++ b/src/libgcc/config/ia64/crti.S
 
129
@@ -51,3 +51,7 @@ _fini:
 
130
        .body
 
131
 
 
132
 # end of crti.S
 
133
+
 
134
+#ifdef __linux__
 
135
+.section .note.GNU-stack; .previous
 
136
+#endif
 
137
Index: b/src/libgcc/config/ia64/crtn.S
 
138
===================================================================
 
139
--- a/src/libgcc/config/ia64/crtn.S
 
140
+++ b/src/libgcc/config/ia64/crtn.S
 
141
@@ -41,3 +41,7 @@
 
142
        br.ret.sptk.many b0
 
143
 
 
144
 # end of crtn.S
 
145
+
 
146
+#ifdef __linux__
 
147
+.section .note.GNU-stack; .previous
 
148
+#endif
 
149
Index: b/src/libgcc/config/ia64/lib1funcs.S
 
150
===================================================================
 
151
--- a/src/libgcc/config/ia64/lib1funcs.S
 
152
+++ b/src/libgcc/config/ia64/lib1funcs.S
 
153
@@ -793,3 +793,7 @@ __floattitf:
 
154
        .endp __floattitf
 
155
 #endif
 
156
 #endif
 
157
+
 
158
+#ifdef __linux__
 
159
+.section .note.GNU-stack; .previous
 
160
+#endif
 
161
Index: b/src/gcc/config/ia64/linux.h
 
162
===================================================================
 
163
--- a/src/gcc/config/ia64/linux.h
 
164
+++ b/src/gcc/config/ia64/linux.h
 
165
@@ -79,5 +79,8 @@ do {                                          \
 
166
 #undef TARGET_INIT_LIBFUNCS
 
167
 #define TARGET_INIT_LIBFUNCS ia64_soft_fp_init_libfuncs
 
168
 
 
169
+#undef TARGET_ASM_FILE_END
 
170
+#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
 
171
+
 
172
 /* Define this to be nonzero if static stack checking is supported.  */
 
173
 #define STACK_CHECK_STATIC_BUILTIN 1
 
174
Index: b/src/gcc/config/rs6000/ppc-asm.h
 
175
===================================================================
 
176
--- a/src/gcc/config/rs6000/ppc-asm.h
 
177
+++ b/src/gcc/config/rs6000/ppc-asm.h
 
178
@@ -375,7 +375,7 @@ GLUE(.L,name): \
 
179
 #endif
 
180
 #endif
 
181
 
 
182
-#if defined __linux__ && !defined __powerpc64__
 
183
+#if defined __linux__
 
184
        .section .note.GNU-stack
 
185
        .previous
 
186
 #endif