[Bug 258241] lang/go produces binaries with an RWX stack

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 03 Sep 2021 08:07:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258241

            Bug ID: 258241
           Summary: lang/go produces binaries with an RWX stack
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: dmgk@freebsd.org
          Reporter: me@igalic.co
          Assignee: dmgk@freebsd.org
             Flags: maintainer-feedback?(dmgk@freebsd.org)

Created attachment 227636
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227636&action=edit
patch to the go linker to add an ELF header to the binaries it produces to mark
them as non-exutable

these binaries fail to run on systems that have W^X enabled.
A patch upstream has already been merged, but won't be released until 1.18

patch upstream: https://go-review.googlesource.com/c/go/+/346872/
discussion upstream: https://github.com/golang/go/issues/48112

-- 
You are receiving this mail because:
You are the assignee for the bug.