use mmap to allocate execute memory
PATCH 1/1 use mmap to allocate execute memory
Use mmap to allocate executable memory on NetBSD as well.
From: Tobias Nygren <[email protected]>
exec.c +2 -1
@@ -520,7 +520,8 @@ static void code_gen_alloc(unsigned long tb_size) } }#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \ - || defined(__DragonFly__) || defined(__OpenBSD__) + || defined(__DragonFly__) || defined(__OpenBSD__) \ + || defined(__NetBSD__) {int flags;void *addr =NULL ;
Signature · 6 lines
---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632
Quoted 11 lines · Christoph Egger
Use mmap to allocate executable memory on NetBSD as well.
From: Tobias Nygren <[email protected]>
Signed-off-by Christoph Egger <[email protected]>exec.c +0
-0
exec.c static void code_gen_alloc(unsigned long tb_size) · line 523
Quoted 4 lines
exec.c +0
-1@@ -520,7 +520,8 @@ static void code_gen_alloc(unsigned long tb_size) } }#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \ - || defined(__DragonFly__) || defined(__OpenBSD__)
Your mailer munged this patch.
Regards,
Anthony Liguori
Quoted 7 lines
exec.c +2
-0+ ||defined (__DragonFly__) ||defined (__OpenBSD__) \ + || defined(__NetBSD__) {int flags;void *addr =NULL ;
Quoted 7 lines · Anthony Liguori
Quoted 6 lines · Christoph Egger
Use mmap to allocate executable memory on NetBSD as well.
From: Tobias Nygren<[email protected]>
Signed-off-by Christoph Egger<[email protected]>
Quoted 11 lines
exec.c static void code_gen_alloc(unsigned long tb_size) · line 523
Quoted 9 lines
exec.c +0
-1@@ -520,7 +520,8 @@ static void code_gen_alloc(unsigned long tb_size) } }#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \ - || defined(__DragonFly__) || defined(__OpenBSD__)Your mailer munged this patch.
... or by the MS Exchange Server.
Resending the patch as attachment, the only one
way I have that works for everyone. Sorry.
Use mmap to allocate executable memory on NetBSD as well.
From: Tobias Nygren <[email protected]>
Signature · 6 lines
---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632
exec.c +2 -1
@@ -520,7 +520,8 @@ static void code_gen_alloc(unsigned long tb_size) } }#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \ - || defined(__DragonFly__) || defined(__OpenBSD__) + || defined(__DragonFly__) || defined(__OpenBSD__) \ + || defined(__NetBSD__) {int flags;void *addr =NULL ;
Blue Swirl
AppliedThanks, applied.
Quoted 41 lines · Christoph Egger
Quoted 8 lines · Anthony Liguori
Quoted 6 lines · Christoph Egger
Use mmap to allocate executable memory on NetBSD as well.
From: Tobias Nygren<[email protected]>
Signed-off-by Christoph Egger<[email protected]>Quoted 11 lines
exec.c static void code_gen_alloc(unsigned long tb_size) · line 523
Quoted 9 lines
exec.c +0
-1@@ -520,7 +520,8 @@ static void code_gen_alloc(unsigned long tb_size) } }#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \ - || defined(__DragonFly__) || defined(__OpenBSD__)Your mailer munged this patch.
... or by the MS Exchange Server.
Resending the patch as attachment, the only one way I have that works for everyone. Sorry.
Use mmap to allocate executable memory on NetBSD as well.
From: Tobias Nygren <[email protected]>
Signed-off-by Christoph Egger <[email protected]>--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632