-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add runc 1.2.5 arm patch (#1123)
- Loading branch information
1 parent
3706d1e
commit 4fbbd9c
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
build-scripts/components/runc/patches/v1.2.5/0001-Disable-static-PIE-on-arm64.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From d290811e554808b9f7a130a18b67464636ac449e Mon Sep 17 00:00:00 2001 | ||
From: Lucian Petrut <[email protected]> | ||
Date: Thu, 27 Feb 2025 13:32:36 +0000 | ||
Subject: [PATCH] Disable static PIE on arm64 | ||
|
||
Ubuntu does not currently have the rcrt1.o file on arm64. | ||
--- | ||
Makefile | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/Makefile b/Makefile | ||
index 0a15fd90..d7e6209a 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -45,7 +45,7 @@ LDFLAGS_STATIC := -extldflags -static | ||
# Enable static PIE executables on supported platforms. | ||
# This (among the other things) requires libc support (rcrt1.o), which seems | ||
# to be available only for arm64 and amd64 (Debian Bullseye). | ||
-ifneq (,$(filter $(GOARCH),arm64 amd64)) | ||
+ifneq (,$(filter $(GOARCH),amd64)) | ||
ifeq (,$(findstring -race,$(EXTRA_FLAGS))) | ||
GO_BUILDMODE_STATIC := -buildmode=pie | ||
LDFLAGS_STATIC := -linkmode external -extldflags -static-pie | ||
-- | ||
2.43.0 | ||
|