m68k: Fix invalid .section syntax
[ Upstream commit 922a9bd138101e3e5718f0f4d40dba68ef89bb43 ] gas supports several different forms for .section for ELF targets, including: .section NAME [, "FLAGS"[, @TYPE[,FLAG_SPECIFIC_ARGUMENTS]]] and: .section "NAME"[, #FLAGS...] In several places we use a mix of these two forms: .section NAME, #FLAGS... A current development snapshot of binutils (2.40.50.20230611) treats this mixed syntax as an error. Change to consistently use: .section NAME, "FLAGS" as is used elsewhere in the kernel. Link: https://buildd.debian.org/status/fetch.php?pkg=linux&arch=m68k&ver=6.4%7Erc6-1%7Eexp1&stamp=1686907300&raw=1 Signed-off-by: Ben Hutchings <benh@debian.org> Tested-by: Jan-Benedict Glaw <jbglaw@lug-owl.de> Link: https://lore.kernel.org/r/ZIyBaueWT9jnTwRC@decadent.org.uk Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
328fcde050
commit
a41f2f6aff
@ -499,13 +499,13 @@ in_ea:
|
|||||||
dbf %d0,morein
|
dbf %d0,morein
|
||||||
rts
|
rts
|
||||||
|
|
||||||
.section .fixup,#alloc,#execinstr
|
.section .fixup,"ax"
|
||||||
.even
|
.even
|
||||||
1:
|
1:
|
||||||
jbsr fpsp040_die
|
jbsr fpsp040_die
|
||||||
jbra .Lnotkern
|
jbra .Lnotkern
|
||||||
|
|
||||||
.section __ex_table,#alloc
|
.section __ex_table,"a"
|
||||||
.align 4
|
.align 4
|
||||||
|
|
||||||
.long in_ea,1b
|
.long in_ea,1b
|
||||||
|
@ -379,11 +379,11 @@ _060_real_access:
|
|||||||
|
|
||||||
|
|
||||||
| Execption handling for movs access to illegal memory
|
| Execption handling for movs access to illegal memory
|
||||||
.section .fixup,#alloc,#execinstr
|
.section .fixup,"ax"
|
||||||
.even
|
.even
|
||||||
1: moveq #-1,%d1
|
1: moveq #-1,%d1
|
||||||
rts
|
rts
|
||||||
.section __ex_table,#alloc
|
.section __ex_table,"a"
|
||||||
.align 4
|
.align 4
|
||||||
.long dmrbuae,1b
|
.long dmrbuae,1b
|
||||||
.long dmrwuae,1b
|
.long dmrwuae,1b
|
||||||
|
@ -26,7 +26,7 @@ ENTRY(relocate_new_kernel)
|
|||||||
lea %pc@(.Lcopy),%a4
|
lea %pc@(.Lcopy),%a4
|
||||||
2: addl #0x00000000,%a4 /* virt_to_phys() */
|
2: addl #0x00000000,%a4 /* virt_to_phys() */
|
||||||
|
|
||||||
.section ".m68k_fixup","aw"
|
.section .m68k_fixup,"aw"
|
||||||
.long M68K_FIXUP_MEMOFFSET, 2b+2
|
.long M68K_FIXUP_MEMOFFSET, 2b+2
|
||||||
.previous
|
.previous
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ ENTRY(relocate_new_kernel)
|
|||||||
lea %pc@(.Lcont040),%a4
|
lea %pc@(.Lcont040),%a4
|
||||||
5: addl #0x00000000,%a4 /* virt_to_phys() */
|
5: addl #0x00000000,%a4 /* virt_to_phys() */
|
||||||
|
|
||||||
.section ".m68k_fixup","aw"
|
.section .m68k_fixup,"aw"
|
||||||
.long M68K_FIXUP_MEMOFFSET, 5b+2
|
.long M68K_FIXUP_MEMOFFSET, 5b+2
|
||||||
.previous
|
.previous
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user