1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
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.
---
gcc/config/ia64/crtbegin.asm | 4 ++++
gcc/config/ia64/crtend.asm | 4 ++++
gcc/config/ia64/crti.asm | 4 ++++
gcc/config/ia64/crtn.asm | 4 ++++
gcc/config/ia64/lib1funcs.asm | 4 ++++
gcc/config/ia64/linux.h | 2 ++
gcc/config/rs6000/ppc-asm.h | 2 +-
7 files changed, 23 insertions(+), 1 deletion(-)
Index: gcc-4.3.1/gcc/config/ia64/crtbegin.asm
===================================================================
--- gcc-4.3.1.orig/gcc/config/ia64/crtbegin.asm
+++ gcc-4.3.1/gcc/config/ia64/crtbegin.asm
@@ -255,3 +255,7 @@ __do_jv_register_classes:
.weak __cxa_finalize
#endif
.weak _Jv_RegisterClasses
+
+#ifdef __linux__
+.section .note.GNU-stack; .previous
+#endif
Index: gcc-4.3.1/gcc/config/ia64/crtend.asm
===================================================================
--- gcc-4.3.1.orig/gcc/config/ia64/crtend.asm
+++ gcc-4.3.1/gcc/config/ia64/crtend.asm
@@ -122,3 +122,7 @@ __do_global_ctors_aux:
br.ret.sptk.many rp
.endp __do_global_ctors_aux
+
+#ifdef __linux__
+.section .note.GNU-stack; .previous
+#endif
Index: gcc-4.3.1/gcc/config/ia64/crti.asm
===================================================================
--- gcc-4.3.1.orig/gcc/config/ia64/crti.asm
+++ gcc-4.3.1/gcc/config/ia64/crti.asm
@@ -64,3 +64,7 @@ _fini:
.body
# end of crti.asm
+
+#ifdef __linux__
+.section .note.GNU-stack; .previous
+#endif
Index: gcc-4.3.1/gcc/config/ia64/crtn.asm
===================================================================
--- gcc-4.3.1.orig/gcc/config/ia64/crtn.asm
+++ gcc-4.3.1/gcc/config/ia64/crtn.asm
@@ -54,3 +54,7 @@
br.ret.sptk.many b0
# end of crtn.asm
+
+#ifdef __linux__
+.section .note.GNU-stack; .previous
+#endif
Index: gcc-4.3.1/gcc/config/ia64/lib1funcs.asm
===================================================================
--- gcc-4.3.1.orig/gcc/config/ia64/lib1funcs.asm
+++ gcc-4.3.1/gcc/config/ia64/lib1funcs.asm
@@ -792,3 +792,7 @@ __floattitf:
}
.endp __floattitf
#endif
+
+#ifdef __linux__
+.section .note.GNU-stack; .previous
+#endif
Index: gcc-4.3.1/gcc/config/ia64/linux.h
===================================================================
--- gcc-4.3.1.orig/gcc/config/ia64/linux.h
+++ gcc-4.3.1/gcc/config/ia64/linux.h
@@ -5,6 +5,8 @@
#define TARGET_VERSION fprintf (stderr, " (IA-64) Linux");
+#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
+
/* This is for -profile to use -lc_p instead of -lc. */
#undef CC1_SPEC
#define CC1_SPEC "%{profile:-p} %{G*}"
Index: gcc-4.3.1/gcc/config/rs6000/ppc-asm.h
===================================================================
--- gcc-4.3.1.orig/gcc/config/rs6000/ppc-asm.h
+++ gcc-4.3.1/gcc/config/rs6000/ppc-asm.h
@@ -158,7 +158,7 @@ GLUE(.L,name): \
.size FUNC_NAME(name),GLUE(.L,name)-FUNC_NAME(name)
#endif
-#if defined __linux__ && !defined __powerpc64__
+#if defined __linux__
.section .note.GNU-stack
.previous
#endif
|