FreeBSD Bugzilla – Attachment 207218 Details for
Bug 235735
lang/go14 fails to build with ASLR
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch file
go14-1.4.3_6.patch (text/plain), 4.46 KB, created by
Dmitri Goutnik
on 2019-09-05 15:47:29 UTC
(
hide
)
Description:
patch file
Filename:
MIME Type:
Creator:
Dmitri Goutnik
Created:
2019-09-05 15:47:29 UTC
Size:
4.46 KB
patch
obsolete
>Index: lang/go14/Makefile >=================================================================== >--- lang/go14/Makefile (revision 511149) >+++ lang/go14/Makefile (working copy) >@@ -2,7 +2,7 @@ > > PORTNAME= go14 > PORTVERSION= 1.4.3 >-PORTREVISION= 5 >+PORTREVISION= 6 > CATEGORIES= lang > MASTER_SITES= https://dl.google.com/go/ > DISTNAME= go1.4-bootstrap-20171003 >Index: lang/go14/files/patch-src_runtime_defs__freebsd__386.h >=================================================================== >--- lang/go14/files/patch-src_runtime_defs__freebsd__386.h (nonexistent) >+++ lang/go14/files/patch-src_runtime_defs__freebsd__386.h (working copy) >@@ -0,0 +1,10 @@ >+--- src/runtime/defs_freebsd_386.h.orig 2019-09-05 14:49:47 UTC >++++ src/runtime/defs_freebsd_386.h >+@@ -14,6 +14,7 @@ enum { >+ MAP_ANON = 0x1000, >+ MAP_PRIVATE = 0x2, >+ MAP_FIXED = 0x10, >++ MAP_EXCL = 0x4000, >+ >+ MADV_FREE = 0x5, >+ > >Property changes on: lang/go14/files/patch-src_runtime_defs__freebsd__386.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: lang/go14/files/patch-src_runtime_defs__freebsd__amd64.h >=================================================================== >--- lang/go14/files/patch-src_runtime_defs__freebsd__amd64.h (nonexistent) >+++ lang/go14/files/patch-src_runtime_defs__freebsd__amd64.h (working copy) >@@ -0,0 +1,10 @@ >+--- src/runtime/defs_freebsd_amd64.h.orig 2019-09-05 14:47:38 UTC >++++ src/runtime/defs_freebsd_amd64.h >+@@ -14,6 +14,7 @@ enum { >+ MAP_ANON = 0x1000, >+ MAP_PRIVATE = 0x2, >+ MAP_FIXED = 0x10, >++ MAP_EXCL = 0x4000, >+ >+ MADV_FREE = 0x5, >+ > >Property changes on: lang/go14/files/patch-src_runtime_defs__freebsd__amd64.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: lang/go14/files/patch-src_runtime_defs__freebsd__arm.h >=================================================================== >--- lang/go14/files/patch-src_runtime_defs__freebsd__arm.h (nonexistent) >+++ lang/go14/files/patch-src_runtime_defs__freebsd__arm.h (working copy) >@@ -0,0 +1,10 @@ >+--- src/runtime/defs_freebsd_arm.h.orig 2019-09-05 14:48:27 UTC >++++ src/runtime/defs_freebsd_arm.h >+@@ -14,6 +14,7 @@ enum { >+ MAP_ANON = 0x1000, >+ MAP_PRIVATE = 0x2, >+ MAP_FIXED = 0x10, >++ MAP_EXCL = 0x4000, >+ >+ MADV_FREE = 0x5, >+ > >Property changes on: lang/go14/files/patch-src_runtime_defs__freebsd__arm.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: lang/go14/files/patch-src_runtime_mem__freebsd.c >=================================================================== >--- lang/go14/files/patch-src_runtime_mem__freebsd.c (nonexistent) >+++ lang/go14/files/patch-src_runtime_mem__freebsd.c (working copy) >@@ -0,0 +1,20 @@ >+--- src/runtime/mem_freebsd.c.orig 2017-11-22 01:33:59 UTC >++++ src/runtime/mem_freebsd.c >+@@ -67,7 +67,7 @@ runtime·SysReserve(void *v, uintptr n, bool *reserved >+ } >+ >+ *reserved = true; >+- p = runtime·mmap(v, n, PROT_NONE, MAP_ANON|MAP_PRIVATE, -1, 0); >++ p = runtime·mmap(v, n, PROT_NONE, MAP_ANON|MAP_FIXED|MAP_EXCL|MAP_PRIVATE, -1, 0); >+ if(p < (void*)4096) >+ return nil; >+ return p; >+@@ -82,7 +82,7 @@ runtime·SysMap(void *v, uintptr n, bool reserved, uin >+ >+ // On 64-bit, we don't actually have v reserved, so tread carefully. >+ if(!reserved) { >+- p = runtime·mmap(v, n, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0); >++ p = runtime·mmap(v, n, PROT_READ|PROT_WRITE, MAP_ANON|MAP_FIXED|MAP_EXCL|MAP_PRIVATE, -1, 0); >+ if(p == (void*)ENOMEM) >+ runtime·throw("runtime: out of memory"); >+ if(p != v) { > >Property changes on: lang/go14/files/patch-src_runtime_mem__freebsd.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 235735
:
207211
|
207218
|
207430