* [gentoo-commits] gentoo-x86 commit in dev-lang/go/files: go-1.0.3-hardened.patch
@ 2012-10-29 15:57 William Hubbs (williamh)
0 siblings, 0 replies; only message in thread
From: William Hubbs (williamh) @ 2012-10-29 15:57 UTC (permalink / raw
To: gentoo-commits
williamh 12/10/29 15:57:40
Added: go-1.0.3-hardened.patch
Log:
version bump and sync live ebuild
(Portage version: 2.2.0_alpha142/cvs/Linux i686, signed Manifest commit with key 0x30C46538)
Revision Changes Path
1.1 dev-lang/go/files/go-1.0.3-hardened.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/go/files/go-1.0.3-hardened.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/go/files/go-1.0.3-hardened.patch?rev=1.1&content-type=text/plain
Index: go-1.0.3-hardened.patch
===================================================================
Index: src/cmd/6l/asm.c
===================================================================
--- a/src/cmd/6l/asm.c
+++ b/src/cmd/6l/asm.c
@@ -1082,6 +1082,11 @@
ph->type = PT_GNU_STACK;
ph->flags = PF_W+PF_R;
ph->align = 8;
+
+ ph = newElfPhdr();
+ ph->type = PT_PAX_FLAGS;
+ ph->flags = 0x2a00; // mprotect, randexec, emutramp disabled
+ ph->align = 8;
sh = newElfShstrtab(elfstr[ElfStrShstrtab]);
sh->type = SHT_STRTAB;
Index: src/cmd/8l/asm.c
===================================================================
--- a/src/cmd/8l/asm.c
+++ b/src/cmd/8l/asm.c
@@ -1127,6 +1127,11 @@
ph->flags = PF_W+PF_R;
ph->align = 4;
+ ph = newElfPhdr();
+ ph->type = PT_PAX_FLAGS;
+ ph->flags = 0x2a00; // mprotect, randexec, emutramp disabled
+ ph->align = 8;
+
sh = newElfShstrtab(elfstr[ElfStrShstrtab]);
sh->type = SHT_STRTAB;
sh->addralign = 1;
Index: src/cmd/ld/elf.h
===================================================================
--- a/src/cmd/ld/elf.h
+++ b/src/cmd/ld/elf.h
@@ -251,6 +251,7 @@
#define PT_LOPROC 0x70000000 /* First processor-specific type. */
#define PT_HIPROC 0x7fffffff /* Last processor-specific type. */
#define PT_GNU_STACK 0x6474e551
+#define PT_PAX_FLAGS 0x65041580
/* Values for p_flags. */
#define PF_X 0x1 /* Executable. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-29 15:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-29 15:57 [gentoo-commits] gentoo-x86 commit in dev-lang/go/files: go-1.0.3-hardened.patch William Hubbs (williamh)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox