From 73d25fde3d648d2544b45a31785a921cdde177d7 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Sun, 19 Feb 2006 09:56:18 +0100 Subject: [PATCH] --- yaml --- r: 23711 b: refs/heads/master c: 8ea80ca4f583e377c902811d42626ccfce16913f h: refs/heads/master i: 23709: 8a4597b2308e65877ce4e458d6539b512a7bb0df 23707: 2dba58b1f297b1261a600f6c74b1c559021a0e49 23703: aace38e1f66ff627bd2ea638db88a777f7d40ebc 23695: 2216a81dea964069abee32158fc3be147179182a 23679: 0941987a9cd00270ca02955c8d923d113d8899ed v: v3 --- [refs] | 2 +- trunk/scripts/mod/modpost.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 01c2e7381d14..5bd31b7ca2d8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 41370d3b5ec6401c5cf0df82297ed989c03a64bd +refs/heads/master: 8ea80ca4f583e377c902811d42626ccfce16913f diff --git a/trunk/scripts/mod/modpost.c b/trunk/scripts/mod/modpost.c index a7360c379cba..eeaf57476820 100644 --- a/trunk/scripts/mod/modpost.c +++ b/trunk/scripts/mod/modpost.c @@ -576,11 +576,11 @@ static void check_sec_ref(struct module *mod, const char *modname, r.r_offset = TO_NATIVE(rela->r_offset); r.r_info = TO_NATIVE(rela->r_info); sym = elf->symtab_start + ELF_R_SYM(r.r_info); - secname = secstrings + sechdrs[sym->st_shndx].sh_name; /* Skip special sections */ if (sym->st_shndx >= SHN_LORESERVE) continue; + secname = secstrings + sechdrs[sym->st_shndx].sh_name; if (section(secname)) warn_sec_mismatch(modname, name, elf, sym, r); }