aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/pending-5.15/305-mips_module_reloc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic/pending-5.15/305-mips_module_reloc.patch')
-rw-r--r--target/linux/generic/pending-5.15/305-mips_module_reloc.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic/pending-5.15/305-mips_module_reloc.patch b/target/linux/generic/pending-5.15/305-mips_module_reloc.patch
index 839ba24293..153c463ca0 100644
--- a/target/linux/generic/pending-5.15/305-mips_module_reloc.patch
+++ b/target/linux/generic/pending-5.15/305-mips_module_reloc.patch
@@ -270,7 +270,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
static int apply_r_mips_none(struct module *me, u32 *location,
u32 base, Elf_Addr v, bool rela)
@@ -54,9 +261,40 @@ static int apply_r_mips_32(struct module
- return 0;
+ *location = base + v;
}
+static Elf_Addr add_plt_entry_to(unsigned *plt_offset,
@@ -302,8 +302,8 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
+
+}
+
- static int apply_r_mips_26(struct module *me, u32 *location,
- u32 base, Elf_Addr v, bool rela)
+ static int apply_r_mips_26(struct module *me, u32 *location, u32 base,
+ Elf_Addr v)
{
+ u32 ofs = base & 0x03ffffff;
+