hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/arch/mips/kernel/elf.c
....@@ -1,11 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2014 Imagination Technologies
34 * Author: Paul Burton <paul.burton@mips.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU General Public License as published by the
7
- * Free Software Foundation; either version 2 of the License, or (at your
8
- * option) any later version.
95 */
106
117 #include <linux/binfmts.h>
....@@ -15,6 +11,8 @@
1511
1612 #include <asm/cpu-features.h>
1713 #include <asm/cpu-info.h>
14
+
15
+#ifdef CONFIG_MIPS_FP_SUPPORT
1816
1917 /* Whether to accept legacy-NaN and 2008-NaN user binaries. */
2018 bool mips_use_nan_legacy;
....@@ -326,6 +324,8 @@
326324 }
327325 }
328326
327
+#endif /* CONFIG_MIPS_FP_SUPPORT */
328
+
329329 int mips_elf_read_implies_exec(void *elf_ex, int exstack)
330330 {
331331 if (exstack != EXSTACK_DISABLE_X) {