aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mod')
-rw-r--r--scripts/mod/modpost.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 33122ca04e7c..e8fba959fffb 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -790,6 +790,7 @@ static const char *section_white_list[] =
790{ 790{
791 ".comment*", 791 ".comment*",
792 ".debug*", 792 ".debug*",
793 ".zdebug*", /* Compressed debug sections. */
793 ".GCC-command-line", /* mn10300 */ 794 ".GCC-command-line", /* mn10300 */
794 ".mdebug*", /* alpha, score, mips etc. */ 795 ".mdebug*", /* alpha, score, mips etc. */
795 ".pdr", /* alpha, score, mips etc. */ 796 ".pdr", /* alpha, score, mips etc. */
@@ -1441,7 +1442,7 @@ static unsigned int *reloc_location(struct elf_info *elf,
1441 int section = shndx2secindex(sechdr->sh_info); 1442 int section = shndx2secindex(sechdr->sh_info);
1442 1443
1443 return (void *)elf->hdr + sechdrs[section].sh_offset + 1444 return (void *)elf->hdr + sechdrs[section].sh_offset +
1444 r->r_offset - sechdrs[section].sh_addr; 1445 r->r_offset;
1445} 1446}
1446 1447
1447static int addend_386_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r) 1448static int addend_386_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r)
@@ -1614,7 +1615,7 @@ static void section_rel(const char *modname, struct elf_info *elf,
1614 * A module includes a number of sections that are discarded 1615 * A module includes a number of sections that are discarded
1615 * either when loaded or when used as built-in. 1616 * either when loaded or when used as built-in.
1616 * For loaded modules all functions marked __init and all data 1617 * For loaded modules all functions marked __init and all data
1617 * marked __initdata will be discarded when the module has been intialized. 1618 * marked __initdata will be discarded when the module has been initialized.
1618 * Likewise for modules used built-in the sections marked __exit 1619 * Likewise for modules used built-in the sections marked __exit
1619 * are discarded because __exit marked function are supposed to be called 1620 * are discarded because __exit marked function are supposed to be called
1620 * only when a module is unloaded which never happens for built-in modules. 1621 * only when a module is unloaded which never happens for built-in modules.