/[gentoo-x86]/dev-util/valgrind/files/valgrind-3.7.0-non-exec-stack.patch
Gentoo

Contents of /dev-util/valgrind/files/valgrind-3.7.0-non-exec-stack.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Nov 11 01:40:06 2011 UTC (2 years, 7 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Version bump

(Portage version: 2.1.10.11/cvs/Linux x86_64)

1 diff -Naur valgrind-3.7.0.orig//coregrind/Makefile.am valgrind-3.7.0/coregrind/Makefile.am
2 --- valgrind-3.7.0.orig//coregrind/Makefile.am 2011-11-10 20:02:47.000000000 -0500
3 +++ valgrind-3.7.0/coregrind/Makefile.am 2011-11-10 20:03:00.000000000 -0500
4 @@ -292,14 +292,6 @@
5 m_demangle/demangle.c \
6 m_demangle/dyn-string.c \
7 m_demangle/safe-ctype.c \
8 - m_dispatch/dispatch-x86-linux.S \
9 - m_dispatch/dispatch-amd64-linux.S \
10 - m_dispatch/dispatch-ppc32-linux.S \
11 - m_dispatch/dispatch-ppc64-linux.S \
12 - m_dispatch/dispatch-arm-linux.S \
13 - m_dispatch/dispatch-s390x-linux.S \
14 - m_dispatch/dispatch-x86-darwin.S \
15 - m_dispatch/dispatch-amd64-darwin.S \
16 m_gdbserver/m_gdbserver.c \
17 m_gdbserver/inferiors.c \
18 m_gdbserver/m_gdbserver.c \
19 @@ -322,8 +314,6 @@
20 m_initimg/initimg-pathscan.c \
21 m_mach/mach_basics.c \
22 m_mach/mach_msg.c \
23 - m_mach/mach_traps-x86-darwin.S \
24 - m_mach/mach_traps-amd64-darwin.S \
25 m_replacemalloc/replacemalloc_core.c \
26 m_scheduler/scheduler.c \
27 m_scheduler/sema.c \
28 @@ -335,14 +325,6 @@
29 m_sigframe/sigframe-s390x-linux.c \
30 m_sigframe/sigframe-x86-darwin.c \
31 m_sigframe/sigframe-amd64-darwin.c \
32 - m_syswrap/syscall-x86-linux.S \
33 - m_syswrap/syscall-amd64-linux.S \
34 - m_syswrap/syscall-ppc32-linux.S \
35 - m_syswrap/syscall-ppc64-linux.S \
36 - m_syswrap/syscall-arm-linux.S \
37 - m_syswrap/syscall-s390x-linux.S \
38 - m_syswrap/syscall-x86-darwin.S \
39 - m_syswrap/syscall-amd64-darwin.S \
40 m_syswrap/syswrap-main.c \
41 m_syswrap/syswrap-generic.c \
42 m_syswrap/syswrap-linux.c \
43 @@ -361,6 +343,24 @@
44 m_ume/main.c \
45 m_ume/script.c
46
47 +COREGRIND_SOURCES_COMMON += \
48 + m_dispatch/dispatch-@VGCONF_ARCH_PRI@-@VGCONF_OS@.S \
49 + m_syswrap/syscall-@VGCONF_ARCH_PRI@-@VGCONF_OS@.S
50 +
51 +if VGCONF_HAVE_PLATFORM_SEC
52 +COREGRIND_SOURCES_COMMON += \
53 + m_dispatch/dispatch-@VGCONF_ARCH_SEC@-@VGCONF_OS@.S \
54 + m_syswrap/syscall-@VGCONF_ARCH_SEC@-@VGCONF_OS@.S
55 +endif
56 +
57 +if VGCONF_OS_IS_DARWIN
58 +COREGRIND_SOURCES_COMMON += \
59 + m_start-@VGCONF_ARCH_PRI@-darwin.S \
60 + m_start-@VGCONF_ARCH_SEC@-darwin.S \
61 + m_mach/mach_traps-@VGCONF_ARCH_PRI@-darwin.S \
62 + m_mach/mach_traps-@VGCONF_ARCH_SEC@-darwin.S
63 +endif
64 +
65 libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = \
66 $(COREGRIND_SOURCES_COMMON)
67 nodist_libcoregrind_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = \
68 diff -Naur valgrind-3.7.0.orig//coregrind/m_dispatch/dispatch-amd64-linux.S valgrind-3.7.0/coregrind/m_dispatch/dispatch-amd64-linux.S
69 --- valgrind-3.7.0.orig//coregrind/m_dispatch/dispatch-amd64-linux.S 2011-10-26 17:24:42.000000000 -0400
70 +++ valgrind-3.7.0/coregrind/m_dispatch/dispatch-amd64-linux.S 2011-11-10 20:07:40.000000000 -0500
71 @@ -349,11 +349,11 @@
72 ret
73 .size VG_(run_a_noredir_translation), .-VG_(run_a_noredir_translation)
74
75 +#endif // defined(VGP_amd64_linux)
76 +
77 /* Let the linker know we don't need an executable stack */
78 .section .note.GNU-stack,"",@progbits
79
80 -#endif // defined(VGP_amd64_linux)
81 -
82 /*--------------------------------------------------------------------*/
83 /*--- end ---*/
84 /*--------------------------------------------------------------------*/
85 diff -Naur valgrind-3.7.0.orig//coregrind/m_dispatch/dispatch-x86-linux.S valgrind-3.7.0/coregrind/m_dispatch/dispatch-x86-linux.S
86 --- valgrind-3.7.0.orig//coregrind/m_dispatch/dispatch-x86-linux.S 2011-10-26 17:24:42.000000000 -0400
87 +++ valgrind-3.7.0/coregrind/m_dispatch/dispatch-x86-linux.S 2011-11-10 20:04:07.000000000 -0500
88 @@ -320,12 +320,11 @@
89 ret
90 .size VG_(run_a_noredir_translation), .-VG_(run_a_noredir_translation)
91
92 -
93 +#endif // defined(VGP_x86_linux)
94 +
95 /* Let the linker know we don't need an executable stack */
96 .section .note.GNU-stack,"",@progbits
97
98 -#endif // defined(VGP_x86_linux)
99 -
100 /*--------------------------------------------------------------------*/
101 /*--- end ---*/
102 /*--------------------------------------------------------------------*/
103 diff -Naur valgrind-3.7.0.orig//coregrind/m_syswrap/syscall-amd64-linux.S valgrind-3.7.0/coregrind/m_syswrap/syscall-amd64-linux.S
104 --- valgrind-3.7.0.orig//coregrind/m_syswrap/syscall-amd64-linux.S 2011-11-10 20:02:47.000000000 -0500
105 +++ valgrind-3.7.0/coregrind/m_syswrap/syscall-amd64-linux.S 2011-11-10 20:03:00.000000000 -0500
106 @@ -205,11 +205,11 @@
107 ML_(blksys_finished): .quad 5b
108 .previous
109
110 +#endif // defined(VGP_amd64_linux)
111 +
112 /* Let the linker know we don't need an executable stack */
113 .section .note.GNU-stack,"",@progbits
114
115 -#endif // defined(VGP_amd64_linux)
116 -
117 /*--------------------------------------------------------------------*/
118 /*--- end ---*/
119 /*--------------------------------------------------------------------*/
120 diff -Naur valgrind-3.7.0.orig//coregrind/m_syswrap/syscall-x86-linux.S valgrind-3.7.0/coregrind/m_syswrap/syscall-x86-linux.S
121 --- valgrind-3.7.0.orig//coregrind/m_syswrap/syscall-x86-linux.S 2011-11-10 20:02:47.000000000 -0500
122 +++ valgrind-3.7.0/coregrind/m_syswrap/syscall-x86-linux.S 2011-11-10 20:03:00.000000000 -0500
123 @@ -164,12 +164,12 @@
124 ML_(blksys_committed): .long 4b
125 ML_(blksys_finished): .long 5b
126 .previous
127 -
128 -/* Let the linker know we don't need an executable stack */
129 -.section .note.GNU-stack,"",@progbits
130
131 #endif // defined(VGP_x86_linux)
132
133 +/* Let the linker know we don't need an executable stack */
134 +.section .note.GNU-stack,"",@progbits
135 +
136 /*--------------------------------------------------------------------*/
137 /*--- end ---*/
138 /*--------------------------------------------------------------------*/

  ViewVC Help
Powered by ViewVC 1.1.20