Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51ff5d77 authored by Daniel Sanders's avatar Daniel Sanders Committed by Ralf Baechle
Browse files

MIPS: Avoid variant of .type unsupported by LLVM Assembler



The target independent parts of the LLVM Lexer considers 'fault@function'
to be a single token representing the 'fault' symbol with a 'function'
modifier. However, this is not the case in the .type directive where
'function' refers to STT_FUNC from the ELF standard.

Although GAS accepts it, '.type symbol@function' is an undocumented form of
this directive. The documentation specifies a comma between the symbol and
'@function'.

Signed-off-by: default avatarScott Egerton <Scott.Egerton@imgtec.com>
Signed-off-by: default avatarDaniel Sanders <daniel.sanders@imgtec.com>
Reviewed-by: default avatarMaciej W. Rozycki <macro@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12587/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 71e60073
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ LEAF(_restore_fp_context)
	END(_restore_fp_context)
	.set	reorder

	.type	fault@function
	.type	fault, @function
	.ent	fault
fault:	li	v0, -EFAULT
	jr	ra
+1 −1
Original line number Diff line number Diff line
@@ -358,7 +358,7 @@ LEAF(_restore_msa_all_upper)

	.set	reorder

	.type	fault@function
	.type	fault, @function
	.ent	fault
fault:	li	v0, -EFAULT				# failure
	jr	ra