summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2023-08-20 09:25:17 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2023-08-20 09:25:17 +0200
commit29f4201ddb991f92a7ca93f0de66861d1704bace (patch)
tree2ea83be8780211f819b3f63c3f421f40f244f031 /target/linux
parente10d9a5ca8e2499adb0b98cbd291c8697b73cacb (diff)
m68k: fix Linux compile with binutils 2.41
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/patches/6.1.44/m68k-Fix-invalid-.section-syntax.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/target/linux/patches/6.1.44/m68k-Fix-invalid-.section-syntax.patch b/target/linux/patches/6.1.44/m68k-Fix-invalid-.section-syntax.patch
new file mode 100644
index 000000000..c2a73d76a
--- /dev/null
+++ b/target/linux/patches/6.1.44/m68k-Fix-invalid-.section-syntax.patch
@@ -0,0 +1,57 @@
+diff -Nur linux-6.1.44.orig/arch/m68k/fpsp040/skeleton.S linux-6.1.44/arch/m68k/fpsp040/skeleton.S
+--- linux-6.1.44.orig/arch/m68k/fpsp040/skeleton.S 2023-08-08 20:03:51.000000000 +0200
++++ linux-6.1.44/arch/m68k/fpsp040/skeleton.S 2023-08-14 04:47:03.786841535 +0200
+@@ -499,13 +499,13 @@
+ dbf %d0,morein
+ rts
+
+- .section .fixup,#alloc,#execinstr
++ .section .fixup,"ax"
+ .even
+ 1:
+ jbsr fpsp040_die
+ jbra .Lnotkern
+
+- .section __ex_table,#alloc
++ .section __ex_table,"a"
+ .align 4
+
+ .long in_ea,1b
+diff -Nur linux-6.1.44.orig/arch/m68k/ifpsp060/os.S linux-6.1.44/arch/m68k/ifpsp060/os.S
+--- linux-6.1.44.orig/arch/m68k/ifpsp060/os.S 2023-08-08 20:03:51.000000000 +0200
++++ linux-6.1.44/arch/m68k/ifpsp060/os.S 2023-08-14 04:47:03.798841249 +0200
+@@ -379,11 +379,11 @@
+
+
+ | Execption handling for movs access to illegal memory
+- .section .fixup,#alloc,#execinstr
++ .section .fixup,"ax"
+ .even
+ 1: moveq #-1,%d1
+ rts
+-.section __ex_table,#alloc
++.section __ex_table,"a"
+ .align 4
+ .long dmrbuae,1b
+ .long dmrwuae,1b
+diff -Nur linux-6.1.44.orig/arch/m68k/kernel/relocate_kernel.S linux-6.1.44/arch/m68k/kernel/relocate_kernel.S
+--- linux-6.1.44.orig/arch/m68k/kernel/relocate_kernel.S 2023-08-08 20:03:51.000000000 +0200
++++ linux-6.1.44/arch/m68k/kernel/relocate_kernel.S 2023-08-14 04:47:03.802841154 +0200
+@@ -26,7 +26,7 @@
+ lea %pc@(.Lcopy),%a4
+ 2: addl #0x00000000,%a4 /* virt_to_phys() */
+
+- .section ".m68k_fixup","aw"
++ .section .m68k_fixup,"aw"
+ .long M68K_FIXUP_MEMOFFSET, 2b+2
+ .previous
+
+@@ -49,7 +49,7 @@
+ lea %pc@(.Lcont040),%a4
+ 5: addl #0x00000000,%a4 /* virt_to_phys() */
+
+- .section ".m68k_fixup","aw"
++ .section .m68k_fixup,"aw"
+ .long M68K_FIXUP_MEMOFFSET, 5b+2
+ .previous
+