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
Closed

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

binarycrusader opened this issue Jun 15, 2016 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. OS-Solaris
Milestone

Comments

@binarycrusader
Copy link
Contributor

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
Copy link

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

@quentinmit quentinmit added the NeedsFix The path to resolution is known, but the work has not been done. label Oct 7, 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.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. OS-Solaris
Projects
None yet
Development

No branches or pull requests

4 participants