aports/main/linux-lts/ppc-notext.patch
Linux User 098309ba27 main/linux-lts: fix build of ppc64le
Link fails since commit a737d101cad8 (main/binutils: add -z text by
default). Fix this for pseries in similar way as in upstream commit
4c078c86b4a4 (powerpc/boot/wrapper: Add "-z notext" flag to disable
diagnostic)

ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/powerpc/boot/wrapper?id=4c078c86b4a466db221a08d423c2eae9332c2641

Revert "main/linux-lts: add execstack too"
This reverts commit 37326a0019a9120ef2661c677c1befbdc72e3cf4.

Revert "main/linux-lts: ..but pass the ldflags ld-style"
This reverts commit 438aa1a9f0520f0a72a43223c8e9a0287a08dceb.

Revert "main/linux-lts: pass ldflags correctly"
This reverts commit 0bd4ec5e0346040eb0c64fc038dc5208eaf3515b.

Revert "main/linux-lts: allow textrel in ppc64le kernel image"
This reverts commit 63432f0c8eef1874cf7cb5456b5dcf8222279f74.
2023-01-16 15:36:30 +01:00

17 lines
532 B
Diff

See:
https://gitlab.alpinelinux.org/alpine/aports/-/issues/14560
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/powerpc/boot/wrapper?id=4c078c86b4a466db221a08d423c2eae9332c2641
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index 5bdd4dd20bbb..4ab2f8316dac 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -251,6 +251,7 @@ pseries)
if [ "$format" != "elf32ppc" ]; then
link_address=
pie=-pie
+ notext='-z notext'
fi
make_space=n
;;