summaryrefslogtreecommitdiff
path: root/arch/mips/kernel/r2300_fpu.S
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2016-02-23 10:29:20 +0000
committerRalf Baechle <ralf@linux-mips.org>2016-02-29 11:23:49 +0100
commit51ff5d7767eae285969da75c209e9425d84b012d (patch)
treedc2243a405e5c2bb5ed86d27082fbbcb7680f022 /arch/mips/kernel/r2300_fpu.S
parent71e60073ca7b5f931b16f29add16c68b2e06949a (diff)
downloadlwn-51ff5d7767eae285969da75c209e9425d84b012d.tar.gz
lwn-51ff5d7767eae285969da75c209e9425d84b012d.zip
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: Scott Egerton <Scott.Egerton@imgtec.com> Signed-off-by: Daniel Sanders <daniel.sanders@imgtec.com> Reviewed-by: Maciej 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: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/r2300_fpu.S')
-rw-r--r--arch/mips/kernel/r2300_fpu.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/r2300_fpu.S b/arch/mips/kernel/r2300_fpu.S
index 5ce3b746cedc..b4ac6374a38f 100644
--- a/arch/mips/kernel/r2300_fpu.S
+++ b/arch/mips/kernel/r2300_fpu.S
@@ -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