kernel/arch/alpha/kernel/module.c
.. .. @@ -146,10 +146,8 @@ 146 146 base = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr; 147 147 symtab = (Elf64_Sym *)sechdrs[symindex].sh_addr; 148 148 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;152 149 got = sechdrs[me->arch.gotsecindex].sh_addr; 150 + gp = got + 0x8000;153 151 154 152 for (i = 0; i < n; i++) { 155 153 unsigned long r_sym = ELF64_R_SYM (rela[i].r_info);