From ea08eeccae9297f7aabd2ef7f0c2517ac4549acc Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Tue, 20 Feb 2024 01:18:26 +0000
Subject: [PATCH] write in 30M
---
kernel/arch/alpha/kernel/module.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/kernel/arch/alpha/kernel/module.c b/kernel/arch/alpha/kernel/module.c
index 5b60c24..cbefa5a 100644
--- a/kernel/arch/alpha/kernel/module.c
+++ b/kernel/arch/alpha/kernel/module.c
@@ -146,10 +146,8 @@
base = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr;
symtab = (Elf64_Sym *)sechdrs[symindex].sh_addr;
- /* The small sections were sorted to the end of the segment.
- The following should definitely cover them. */
- gp = (u64)me->core_layout.base + me->core_layout.size - 0x8000;
got = sechdrs[me->arch.gotsecindex].sh_addr;
+ gp = got + 0x8000;
for (i = 0; i < n; i++) {
unsigned long r_sym = ELF64_R_SYM (rela[i].r_info);
--
Gitblit v1.6.2