]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - scripts/mod/modpost.c
modpost: Fix address calculation in reloc_location()
[mv-sheeva.git] / scripts / mod / modpost.c
index 194e2c4536091c4203750f3058a0975e1e4ff1c8..97d2259ae999b6b7f99f709035b49b6e04e88480 100644 (file)
@@ -1442,7 +1442,7 @@ static unsigned int *reloc_location(struct elf_info *elf,
        int section = shndx2secindex(sechdr->sh_info);
 
        return (void *)elf->hdr + sechdrs[section].sh_offset +
-               r->r_offset - sechdrs[section].sh_addr;
+               r->r_offset;
 }
 
 static int addend_386_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r)