summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2025-10-10 11:50:04 +0200
committercyan <cyjan@mrcyjanek.net>2025-10-10 09:17:11 -0400
commit411e8a1cdb3f4c2812d83f28c335d2a4eb18bd29 (patch)
tree94f4a42382c11c12d9fb9f6db8b5fef4b0cff8fc
parentcc022922fbb62ce00e17bbd62d4225fc3f83f3a0 (diff)
fix: make stack rwv0.18.4.0-RC9
-rwxr-xr-xapply_patches.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/apply_patches.sh b/apply_patches.sh
index 8013c9d..be83bfb 100755
--- a/apply_patches.sh
+++ b/apply_patches.sh
@@ -46,6 +46,19 @@ then
fi
git submodule init
git submodule update --init --recursive --force
+
+find . -name "*.S" -o -name "*.s" -type f | while read -r file; do
+ if ! grep -q "\.note\.GNU-stack" "$file"; then
+ echo "Adding conditional .note.GNU-stack section to: $file"
+ echo "" >> "$file"
+ echo "#ifdef __linux__" >> "$file"
+ echo ".section .note.GNU-stack,\"\",@progbits" >> "$file"
+ echo "#endif" >> "$file"
+ git add "$file" || true
+ fi
+done
+git commit -m "Add .note.GNU-stack section to assembly files"
+
git am -3 <<EOF
From e56dd6cd0fb1a5e55d3cb08691edf24b26d65299 Mon Sep 17 00:00:00 2001
From: Czarek Nakamoto <cyjan@mrcyjanek.net>