hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/sh/kernel/module.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0+
12 /* Kernel module help for SH.
23
34 SHcompact version by Kaz Kojima and Paul Mundt.
....@@ -9,20 +10,6 @@
910
1011 Based on the sh version, and on code from the sh64-specific parts of
1112 modutils, originally written by Richard Curnow and Ben Gaster.
12
-
13
- This program is free software; you can redistribute it and/or modify
14
- it under the terms of the GNU General Public License as published by
15
- the Free Software Foundation; either version 2 of the License, or
16
- (at your option) any later version.
17
-
18
- This program is distributed in the hope that it will be useful,
19
- but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
- GNU General Public License for more details.
22
-
23
- You should have received a copy of the GNU General Public License
24
- along with this program; if not, write to the Free Software
25
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2613 */
2714 #include <linux/moduleloader.h>
2815 #include <linux/elf.h>
....@@ -58,15 +45,6 @@
5845 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr
5946 + ELF32_R_SYM(rel[i].r_info);
6047 relocation = sym->st_value + rel[i].r_addend;
61
-
62
-#ifdef CONFIG_SUPERH64
63
- /* For text addresses, bit2 of the st_other field indicates
64
- * whether the symbol is SHmedia (1) or SHcompact (0). If
65
- * SHmedia, the LSB of the symbol needs to be asserted
66
- * for the CPU to be in SHmedia mode when it starts executing
67
- * the branch target. */
68
- relocation |= !!(sym->st_other & 4);
69
-#endif
7048
7149 switch (ELF32_R_TYPE(rel[i].r_info)) {
7250 case R_SH_NONE: