18 #include <linux/elf.h>
22 unsigned int symindex,
27 Elf32_Rela *rel = (
void *)sechdrs[relsec].sh_addr;
32 pr_debug(
"Applying relocate section %u to %u\n", relsec,
33 sechdrs[relsec].sh_info);
34 for (i = 0; i < sechdrs[relsec].
sh_size /
sizeof(*rel); i++) {
36 location = (
void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
41 sym = (
Elf32_Sym *)sechdrs[symindex].sh_addr
61 value |= *location & 0xfc000000;
65 pr_err(
"module %s: Unknown relocation: %u\n",