Merge pull request #105352 from ehashman/revert-102323-pie

Revert "Build non-static binaries with PIE buildmode"
This commit is contained in:
Kubernetes Prow Robot 2021-09-30 18:33:33 -07:00 committed by GitHub
commit e1b94fdac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -412,10 +412,6 @@ kube::golang::set_platform_envs() {
export CGO_ENABLED=1
export CC=${KUBE_LINUX_AMD64_CC:-x86_64-linux-gnu-gcc}
;;
"linux/386")
export CGO_ENABLED=1
export CC=${KUBE_LINUX_386_CC:-i686-linux-gnu-gcc}
;;
"linux/arm")
export CGO_ENABLED=1
export CC=${KUBE_LINUX_ARM_CC:-arm-linux-gnueabihf-gcc}
@ -726,7 +722,6 @@ kube::golang::build_binaries_for_platform() {
-gcflags "${gogcflags:-}"
-asmflags "${goasmflags:-}"
-ldflags "${goldflags:-}"
-buildmode pie
-tags "${gotags:-}"
)
V=1 kube::log::info "> non-static build: ${nonstatics[*]}"