void-packages/srcpkgs/pcsxr/patches/01_fix-i386-exec-stack.patch
q66 cabbb8a1ca pcsxr: update to 1.9.94
This switches distfiles source as the original does ńot have the
new version. It also adds a bunch of patches, including fixes for
ppc and so on, from Debian.
2019-06-25 21:53:05 +02:00

28 lines
842 B
Diff

Description: Fix executable stack on i386
Fix is needed only for nasm >= 2.09, not tested on older versions.
Author: Andrey Rahmatullin <wrar@wrar.name>
Bug: http://pcsxr.codeplex.com/workitem/7915
Last-Update: 2011-01-15
--- a/plugins/dfxvideo/Makefile.am
+++ b/plugins/dfxvideo/Makefile.am
@@ -4,7 +4,7 @@ SUFFIXES = .asm
.asm.lo:
$(LIBTOOL) --tag=CC --mode=compile \
- $(STRIP_FPIC) $(NASM) -f elf -d ELF -I${srcdir}/ $<
+ $(STRIP_FPIC) $(NASM) -f elf32 -d ELF -I${srcdir}/ $<
AM_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
-DDATADIR=\"${datadir}/psemu/\" \
--- a/plugins/dfxvideo/i386.asm
+++ b/plugins/dfxvideo/i386.asm
@@ -61,7 +61,7 @@ NEWSYM i386_shl10idiv
mov esp, ebp
pop ebp
ret
-%ifidn __OUTPUT_FORMAT__,elf
+%ifidn __OUTPUT_FORMAT__,elf32
section .note.GNU-stack noalloc noexec nowrite progbits
%endif