• Luis Chamberlain's avatar
    module: merge remnants of setup_load_info() to elf validation · 3d40bb90
    Luis Chamberlain authored
    The setup_load_info() was actually had ELF validation checks of its
    own. To later cache useful variables as an secondary step just means
    looping again over the ELF sections we just validated. We can simply
    keep tabs of the key sections of interest as we validate the module
    ELF section in one swoop, so do that and merge the two routines
    together.
    
    Expand a bit on the documentation / intent / goals.
    Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
    3d40bb90
main.c 81.3 KB