Skip to content

hack/make/.binary: enable pie mode on windows/arm64#48421

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:make_update_link
Sep 3, 2024
Merged

hack/make/.binary: enable pie mode on windows/arm64#48421
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:make_update_link

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah commented Sep 3, 2024

pie-mode is supported for windows/arm64 since https://go.dev/cl/452415 (golang/go@3732a17), which is part of go1.20. Also update link to Go source for pie-mode support to match the location for current versions of Go because the package was moved in https://go.dev/cl/438475 (golang/go@8bd803f).

@thaJeztah thaJeztah added status/2-code-review area/packaging kind/refactor PR's that refactor, or clean-up code labels Sep 3, 2024
@thaJeztah thaJeztah added this to the 29.0.0 milestone Sep 3, 2024
@thaJeztah thaJeztah requested a review from tianon as a code owner September 3, 2024 08:15
@thaJeztah thaJeztah marked this pull request as draft September 3, 2024 08:20
@thaJeztah
Copy link
Copy Markdown
Member Author

Actually; noticed that windows/arm64 now supports it, since golang/go@3732a17 (go1.20), so let me update

pie-mode is supported for windows/arm64 since https://go.dev/cl/452415,
which is part of go1.20. Also update link to Go source for pie-mode support
to match the location for current versions of Go because the package was
moved in https://go.dev/cl/438475.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah changed the title hack/make/.binary: update link to Go source for pie-mode support hack/make/.binary: enable pie mode on windows/arm64 Sep 3, 2024
@thaJeztah thaJeztah self-assigned this Sep 3, 2024
@thaJeztah thaJeztah marked this pull request as ready for review September 3, 2024 08:26
Copy link
Copy Markdown
Member

@tianon tianon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reversing upstream's conditional makes this a little hard to verify for correctness, but that's not new here (and shouldn't block this PR IMO ❤️).

@thaJeztah
Copy link
Copy Markdown
Member Author

LOL so I really just stumbled on this; I went looking for some options we set, to compare with the equivalent scripts in the CLI. That made me land on

moby/hack/make.sh

Lines 99 to 102 in 55752bb

if [ "$(uname -s)" = 'FreeBSD' ]; then
# Tell cgo the compiler is Clang, not GCC
# https://code.google.com/p/go/source/browse/src/cmd/cgo/gcc.go?spec=svne77e74371f2340ee08622ce602e9f7b15f29d8d3&r=e6794866ebeba2bf8818b9261b54e2eef1c9e588#752
export CC=clang

And I wondered if that's still relevant (well, unlikely is, because "FreeBSD"); but code.google.com is deprecated ... and the link was broken, so I searched if we had other references to it...

  • found the one in this PR.
  • wanted to check for the current go version
  • found that that was a 404
  • so went searching "where did that code go?"
  • updated the link
  • spotted "Oh! Windows now supports it!"

So, living up to my Yak-shaving expectations again 😂😂😂

@thaJeztah
Copy link
Copy Markdown
Member Author

Let me bring this one in; well unlikely be able to build for windows on arm64 any time soon, but at least the code is now "correct" in what it excludes 😄 and having a current link doesn't hurt.

@thaJeztah thaJeztah merged commit fa734fe into moby:master Sep 3, 2024
@thaJeztah thaJeztah deleted the make_update_link branch September 3, 2024 21:08
@thaJeztah thaJeztah modified the milestones: 29.0.0, 28.0.0 Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants