Clean up get_section()
authorAndreas Robinson <andr345@gmail.com>
Tue, 21 Apr 2009 17:32:47 +0000 (19:32 +0200)
committerJon Masters <jcm@jonmasters.org>
Thu, 30 Apr 2009 19:30:57 +0000 (15:30 -0400)
commitdf5053ce3010f0f54232fe80a6cbc0fe011271e0
tree630ba03cd88a53e82caf458489eb166cdfc94cd3
parent2378e79e165fac327a4c8312f8c6546e81f8224d
Clean up get_section()

Combines three duplicate and almost-duplicate implementations in
modinfo.c, modprobe.c and moduleops_core.c

The new version gets endianness swapping from the implementation in
modinfo.c and bounds checking from the implementation in modprobe.

Signed-off-by: Andreas Robinson <andr345@gmail.com>
Signed-off-by: Jon Masters <jcm@jonmasters.org>
elf_core.c [new file with mode: 0644]
modinfo.c
modprobe.c
moduleops_core.c
util.c
util.h