-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/link: add option to enable full RELRO for ELF #58869
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
Conversation
This PR (HEAD: 1eccb59) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/473495 to see it. Tip: You can toggle comments from me using the |
Message from Ian Lance Taylor: Patch Set 1: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Gopher Robot: Patch Set 1: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
This PR (HEAD: b0d175e) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/473495 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: 8c570d3) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/473495. Important tips:
|
Message from Nick Revin: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from qiulaidongfeng: Patch Set 3: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Gopher Robot: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Gopher Robot: Patch Set 3: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Cherry Mui: Patch Set 3: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Nick Revin: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
This PR (HEAD: effcd7b) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/473495. Important tips:
|
This PR (HEAD: 2cacbec) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/473495. Important tips:
|
Message from Nick Revin: Patch Set 4: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
This PR (HEAD: 771f575) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/473495. Important tips:
|
Message from Nick Revin: Patch Set 6: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Cherry Mui: Patch Set 6: Commit-Queue+1 (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Go LUCI: Patch Set 6: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-02-01T19:45:17Z","revision":"616ded201847757774587b6ae4601dcdf0a067ec"} Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Cherry Mui: Patch Set 6: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Go LUCI: Patch Set 6: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Go LUCI: Patch Set 6: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
This PR (HEAD: 89abef2) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/473495. Important tips:
|
Message from Nick Revin: Patch Set 6: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Cherry Mui: Patch Set 7: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
This PR (HEAD: 52543a7) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/473495. Important tips:
|
Message from Nick Revin: Patch Set 8: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Cherry Mui: Patch Set 8: Run-TryBot+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Gopher Robot: Patch Set 8: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Gopher Robot: Patch Set 13: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Gopher Robot: Patch Set 13: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
-bindnow linker option enables full RELRO on ELF targets. This options defaults to false and preserves current behavior - partial relro for buildmode=pie. Also, the following changes were made to align internal linker's behavior with external ELF linkers: - GNU_RELRO segment is marked Read-only - .dynamic is a relro section for partial and full RELRO - .got is a relro section for partial and full RELRO - .got.plt is a relro section for full RELRO only Supersedes #45681 (golang.org/cl/312509)
Message from Nick Revin: Patch Set 13: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
This PR (HEAD: bc68264) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/473495. Important tips:
|
Message from Cherry Mui: Patch Set 14: Code-Review+2 Commit-Queue+1 Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Go LUCI: Patch Set 14: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-02-27T18:36:56Z","revision":"104c477d5e555d38411df395de8c659544834ad0"} Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Gopher Robot: Patch Set 14: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Cherry Mui: Patch Set 14: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Go LUCI: Patch Set 14: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Go LUCI: Patch Set 14: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Gopher Robot: Patch Set 14: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Nick Revin: Patch Set 14: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Nick Revin: Patch Set 14: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
Message from Than McIntosh: Patch Set 14: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
-bindnow linker option enables full RELRO on ELF targets. This options defaults to false and preserves current behavior - partial relro for buildmode=pie. Also, the following changes were made to align internal linker's behavior with external ELF linkers: - GNU_RELRO segment is marked Read-only - .dynamic is a relro section for partial and full RELRO - .got is a relro section for partial and full RELRO - .got.plt is a relro section for full RELRO only Supersedes #45681 (golang.org/cl/312509) Change-Id: I51c4ef07b14beceb7cd6fd989f323e45f89a63ca GitHub-Last-Rev: bc68264 GitHub-Pull-Request: #58869 Reviewed-on: https://go-review.googlesource.com/c/go/+/473495 TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Run-TryBot: Cherry Mui <[email protected]> Reviewed-by: Than McIntosh <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
Message from Cherry Mui: Patch Set 14: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/473495. |
This PR is being closed because golang.org/cl/473495 has been merged. |
-bindnow linker option enables full RELRO on ELF targets. This options defaults to false and preserves current behavior - partial relro for buildmode=pie. Also, the following changes were made to align internal linker's behavior with external ELF linkers: - GNU_RELRO segment is marked Read-only - .dynamic is a relro section for partial and full RELRO - .got is a relro section for partial and full RELRO - .got.plt is a relro section for full RELRO only Supersedes #45681 (golang.org/cl/312509) Change-Id: I51c4ef07b14beceb7cd6fd989f323e45f89a63ca GitHub-Last-Rev: bc6826441065395b80a2b66cde67466c4d9bce2e GitHub-Pull-Request: golang/go#58869 Reviewed-on: https://go-review.googlesource.com/c/go/+/473495 TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Run-TryBot: Cherry Mui <[email protected]> Reviewed-by: Than McIntosh <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
-bindnow linker option enables full RELRO on ELF targets. This options defaults to false and preserves current behavior - partial relro for buildmode=pie. Also, the following changes were made to align internal linker's behavior with external ELF linkers: - GNU_RELRO segment is marked Read-only - .dynamic is a relro section for partial and full RELRO - .got is a relro section for partial and full RELRO - .got.plt is a relro section for full RELRO only Supersedes #45681 (golang.org/cl/312509) Change-Id: I51c4ef07b14beceb7cd6fd989f323e45f89a63ca GitHub-Last-Rev: bc6826441065395b80a2b66cde67466c4d9bce2e GitHub-Pull-Request: golang/go#58869 Reviewed-on: https://go-review.googlesource.com/c/go/+/473495 TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Run-TryBot: Cherry Mui <[email protected]> Reviewed-by: Than McIntosh <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
-bindnow linker option enables full RELRO on ELF targets.
This options defaults to false and preserves
current behavior - partial relro for buildmode=pie.
Also, the following changes were made to align
internal linker's behavior with external ELF linkers:
Supersedes #45681 (golang.org/cl/312509)