• Tiezhu Yang's avatar
    LoongArch: Add support for 32_PCREL relocation type · c1c2ce2d
    Tiezhu Yang authored
    When build and update kernel with the latest upstream binutils and
    loongson3_defconfig, module loader fails with:
    
      kmod: zsmalloc: Unsupport relocation type 99, please add its support.
      kmod: fuse: Unsupport relocation type 99, please add its support.
      kmod: ipmi_msghandler: Unsupport relocation type 99, please add its support.
      kmod: ipmi_msghandler: Unsupport relocation type 99, please add its support.
      kmod: pstore: Unsupport relocation type 99, please add its support.
      kmod: drm_display_helper: Unsupport relocation type 99, please add its support.
      kmod: drm_display_helper: Unsupport relocation type 99, please add its support.
      kmod: drm_display_helper: Unsupport relocation type 99, please add its support.
      kmod: fuse: Unsupport relocation type 99, please add its support.
      kmod: fat: Unsupport relocation type 99, please add its support.
    
    This is because the latest upstream binutils replaces a pair of ADD32
    and SUB32 with 32_PCREL, so add support for 32_PCREL relocation type.
    
    Link: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ecb802d02eeb
    Cc: <stable@vger.kernel.org>
    Co-developed-by: default avatarYouling Tang <tangyouling@loongson.cn>
    Signed-off-by: default avatarYouling Tang <tangyouling@loongson.cn>
    Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
    Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
    c1c2ce2d
module.c 14.4 KB