• Alan Modra's avatar
    [PATCH] powerpc64: Fix loading of modules without a .toc section · f749edae
    Alan Modra authored
    Normally, ppc64 module .ko files contain a table-of-contents (.toc)
    section, but if the module doesn't reference any static or external
    data or external procedures, it is possible for gcc/binutils to
    generate a .ko that doesn't have a .toc.  Currently the module
    loader refuses to load such a module, since it needs the address
    of the .toc section to use in relocations.
    
    This patch fixes the problem by using the address of the .stubs
    section instead, which is an acceptable substitute in this situation.
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    f749edae
module_64.c 13.2 KB