diff options
| author | Michal Marek <mmarek@suse.cz> | 2010-08-20 13:53:08 +0200 | 
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2010-08-20 13:53:08 +0200 | 
| commit | e981b060767b3c4ac9393ad8d2558d648e35dfcb (patch) | |
| tree | 9c05eaec3072be3645dda61d35085d152b9d5954 /scripts/mod/file2alias.c | |
| parent | 3c955b407a084810f57260d61548cc92c14bc627 (diff) | |
| parent | da5cabf80e2433131bf0ed8993abc0f7ea618c73 (diff) | |
Merge commit 'v2.6.36-rc1' into kbuild/rc-fixes
Diffstat (limited to 'scripts/mod/file2alias.c')
| -rw-r--r-- | scripts/mod/file2alias.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 5758aab0d8b..88f3f07205f 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c @@ -884,16 +884,16 @@ void handle_moddevtable(struct module *mod, struct elf_info *info,  	char *zeros = NULL;  	/* We're looking for a section relative symbol */ -	if (!sym->st_shndx || sym->st_shndx >= info->hdr->e_shnum) +	if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections)  		return;  	/* Handle all-NULL symbols allocated into .bss */ -	if (info->sechdrs[sym->st_shndx].sh_type & SHT_NOBITS) { +	if (info->sechdrs[get_secindex(info, sym)].sh_type & SHT_NOBITS) {  		zeros = calloc(1, sym->st_size);  		symval = zeros;  	} else {  		symval = (void *)info->hdr -			+ info->sechdrs[sym->st_shndx].sh_offset +			+ info->sechdrs[get_secindex(info, sym)].sh_offset  			+ sym->st_value;  	}  | 
