Annotation of /trunk/smpeg/patches/smpeg-0.4.4-gnu-stack.patch
Parent Directory | Revision Log
Revision 153 -
(hide annotations)
(download)
Tue May 8 20:52:56 2007 UTC (17 years, 1 month ago) by niro
File size: 955 byte(s)
Tue May 8 20:52:56 2007 UTC (17 years, 1 month ago) by niro
File size: 955 byte(s)
-import
1 | niro | 153 | Make sure that the asm files don't incorrectly trigger an executable |
2 | stack marking in the final shared library. That's bad, mmmkay. | ||
3 | |||
4 | before: | ||
5 | $ readelf -l /usr/lib/libsmpeg.so | grep -A 1 GNU_STACK | ||
6 | GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 | ||
7 | 0x0000000000000000 0x0000000000000000 RWE 8 | ||
8 | after: | ||
9 | $ readelf -l /usr/lib/libsmpeg.so | grep -A 1 GNU_STACK | ||
10 | GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 | ||
11 | 0x0000000000000000 0x0000000000000000 RW 8 | ||
12 | |||
13 | --- smpeg-0.4.4/video/mmxflags_asm.S | ||
14 | +++ smpeg-0.4.4/video/mmxflags_asm.S | ||
15 | @@ -57,3 +57,7 @@ | ||
16 | .size cpu_flags,.Lfe1-cpu_flags | ||
17 | |||
18 | #endif /* i386 && USE_MMX */ | ||
19 | + | ||
20 | +#ifdef __ELF__ | ||
21 | +.section .note.GNU-stack,"",%progbits | ||
22 | +#endif | ||
23 | --- smpeg-0.4.4/video/mmxidct_asm.S | ||
24 | +++ smpeg-0.4.4/video/mmxidct_asm.S | ||
25 | @@ -673,3 +673,7 @@ | ||
26 | |||
27 | |||
28 | #endif /* i386 && USE_MMX */ | ||
29 | + | ||
30 | +#ifdef __ELF__ | ||
31 | +.section .note.GNU-stack,"",%progbits | ||
32 | +#endif |