• Paul Burton's avatar
    MIPS: Support R_MIPS_PC{16,21,26} rel-style relocs · 5d3c7925
    Paul Burton authored
    MIPS32 code uses rel-style relocs, and MIPS32r6 modules may include
    R_MIPS_PC16, R_MIPS_PC21 & R_MIPS_PC26 relocations. We thus need to
    support these relocations in order to load MIPS32r6 kernel modules. This
    patch adds such support, which is similar to the rela-style support in
    module-rela.c but making use of the implicit addend from the instruction
    encoding.
    Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
    Cc: Steven J. Hill <sjhill@realitydiluted.com>
    Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
    Cc: James Hogan <james.hogan@imgtec.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/12435/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    5d3c7925
module.c 8.86 KB