hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/alpha/kernel/module.c
....@@ -146,10 +146,8 @@
146146 base = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr;
147147 symtab = (Elf64_Sym *)sechdrs[symindex].sh_addr;
148148
149
- /* The small sections were sorted to the end of the segment.
150
- The following should definitely cover them. */
151
- gp = (u64)me->core_layout.base + me->core_layout.size - 0x8000;
152149 got = sechdrs[me->arch.gotsecindex].sh_addr;
150
+ gp = got + 0x8000;
153151
154152 for (i = 0; i < n; i++) {
155153 unsigned long r_sym = ELF64_R_SYM (rela[i].r_info);