Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/link: non-executable stack support for Solaris #16074

Closed
binarycrusader opened this issue Jun 15, 2016 · 1 comment

Comments

Projects
None yet
4 participants
@binarycrusader
Copy link
Contributor

commented Jun 15, 2016

Today, the Go linker supports tagging executables as having a non-executable stack via a PT_GNU_STACK program header for internal linking.

The Solaris native mechanism for this is to create a PT_SUNWSTACK program header that is almost identical.

For the 1.8 release, I will contribute a set of trivial changes that offer the Solaris equivalent functionality that writes out a program header that looks like this (when viewed with Solaris elfdump):

Program Header[8]:
    p_vaddr:      0                   p_flags:    [ PF_W PF_R ]
    p_paddr:      0                   p_type:     [ PT_SUNWSTACK ]
    p_filesz:     0                   p_memsz:    0
    p_offset:     0                   p_align:    0

@ianlancetaylor ianlancetaylor added this to the Go1.8 milestone Jun 15, 2016

@ianlancetaylor ianlancetaylor changed the title cmd/link/internal/ld: non-executable stack support for Solaris cmd/link: non-executable stack support for Solaris Jun 15, 2016

@gopherbot

This comment has been minimized.

Copy link

commented Sep 30, 2016

CL https://golang.org/cl/24142 mentions this issue.

@quentinmit quentinmit added the NeedsFix label Oct 7, 2016

@gopherbot gopherbot closed this in f373bf1 Oct 12, 2016

@golang golang locked and limited conversation to collaborators Oct 12, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.