module: Overwrite st_size instead of st_info
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Fri, 14 Dec 2018 16:05:54 +0000 (17:05 +0100)
committerJessica Yu <jeyu@kernel.org>
Fri, 14 Dec 2018 19:27:21 +0000 (20:27 +0100)
commit5439c985c5a83a8419f762115afdf560ab72a452
tree78e646e94cda55489bebe347421ff708a71738fe
parent2d25bc55235314d869459c574be14e8faa73aca3
module: Overwrite st_size instead of st_info

st_info is currently overwritten after relocation and used to store the
elf_type().  However, we're going to need it fix kallsyms on ARM's
Thumb-2 kernels, so preserve st_info and overwrite the st_size field
instead.  st_size is neither used by the module core nor by any
architecture.

Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
kernel/module.c