diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-03-29 06:55:26 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-03-29 06:55:26 +0000 |
commit | ffd4c2fa34d4df7e8cae07ba814c9ea7af10a54e (patch) | |
tree | edfd8fd1a725c4b074835679383452aa6e230be5 /media-libs/smpeg/files | |
parent | fix ebegin/eend (diff) | |
download | gentoo-2-ffd4c2fa34d4df7e8cae07ba814c9ea7af10a54e.tar.gz gentoo-2-ffd4c2fa34d4df7e8cae07ba814c9ea7af10a54e.tar.bz2 gentoo-2-ffd4c2fa34d4df7e8cae07ba814c9ea7af10a54e.zip |
Make sure that the libsmpeg.so has a non-executable gnu stack marking.
(Portage version: 2.0.51.19)
Diffstat (limited to 'media-libs/smpeg/files')
-rw-r--r-- | media-libs/smpeg/files/digest-smpeg-0.4.4-r5 (renamed from media-libs/smpeg/files/digest-smpeg-0.4.4-r4) | 0 | ||||
-rw-r--r-- | media-libs/smpeg/files/smpeg-0.4.4-gnu-stack.patch | 28 |
2 files changed, 28 insertions, 0 deletions
diff --git a/media-libs/smpeg/files/digest-smpeg-0.4.4-r4 b/media-libs/smpeg/files/digest-smpeg-0.4.4-r5 index 9aa5597db6c8..9aa5597db6c8 100644 --- a/media-libs/smpeg/files/digest-smpeg-0.4.4-r4 +++ b/media-libs/smpeg/files/digest-smpeg-0.4.4-r5 diff --git a/media-libs/smpeg/files/smpeg-0.4.4-gnu-stack.patch b/media-libs/smpeg/files/smpeg-0.4.4-gnu-stack.patch new file mode 100644 index 000000000000..a48b6280694b --- /dev/null +++ b/media-libs/smpeg/files/smpeg-0.4.4-gnu-stack.patch @@ -0,0 +1,28 @@ +Make sure that the asm files don't incorrectly trigger an executable +stack marking in the final shared library. That's bad, mmmkay. + +before: +$ readelf -l /usr/lib/libsmpeg.so | grep -A 1 GNU_STACK + GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 + 0x0000000000000000 0x0000000000000000 RWE 8 +after: +$ readelf -l /usr/lib/libsmpeg.so | grep -A 1 GNU_STACK + GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 + 0x0000000000000000 0x0000000000000000 RW 8 + +--- smpeg-0.4.4/video/mmxflags_asm.S ++++ smpeg-0.4.4/video/mmxflags_asm.S +@@ -57,3 +57,5 @@ + .size cpu_flags,.Lfe1-cpu_flags + + #endif /* i386 && USE_MMX */ ++ ++.section .note.GNU-stack,"",@progbits +--- smpeg-0.4.4/video/mmxidct_asm.S ++++ smpeg-0.4.4/video/mmxidct_asm.S +@@ -673,3 +673,5 @@ + + + #endif /* i386 && USE_MMX */ ++ ++.section .note.GNU-stack,"",@progbits |