mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
Merge tag 'loongarch-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
Pull LoongArch updates from Huacai Chen: - Raise minimum clang version to 18.0.0 - Enable initial Rust support for LoongArch - Add built-in dtb support for LoongArch - Use generic interface to support crashkernel=X,[high,low] - Some bug fixes and other small changes - Update the default config file. * tag 'loongarch-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson: (22 commits) MAINTAINERS: Add BPF JIT for LOONGARCH entry LoongArch: Update Loongson-3 default config file LoongArch: BPF: Prevent out-of-bounds memory access LoongArch: BPF: Support 64-bit pointers to kfuncs LoongArch: Fix definition of ftrace_regs_set_instruction_pointer() LoongArch: Use generic interface to support crashkernel=X,[high,low] LoongArch: Fix and simplify fcsr initialization on execve() LoongArch: Let cores_io_master cover the largest NR_CPUS LoongArch: Change SHMLBA from SZ_64K to PAGE_SIZE LoongArch: Add a missing call to efi_esrt_init() LoongArch: Parsing CPU-related information from DTS LoongArch: dts: DeviceTree for Loongson-2K2000 LoongArch: dts: DeviceTree for Loongson-2K1000 LoongArch: dts: DeviceTree for Loongson-2K0500 LoongArch: Allow device trees be built into the kernel dt-bindings: interrupt-controller: loongson,liointc: Fix dtbs_check warning for interrupt-names dt-bindings: interrupt-controller: loongson,liointc: Fix dtbs_check warning for reg-names dt-bindings: loongarch: Add Loongson SoC boards compatibles dt-bindings: loongarch: Add CPU bindings for LoongArch LoongArch: Enable initial Rust support ...
This commit is contained in:
@@ -1345,6 +1345,14 @@ static Elf_Addr addend_mips_rel(uint32_t *location, unsigned int r_type)
|
||||
#define R_LARCH_SUB32 55
|
||||
#endif
|
||||
|
||||
#ifndef R_LARCH_RELAX
|
||||
#define R_LARCH_RELAX 100
|
||||
#endif
|
||||
|
||||
#ifndef R_LARCH_ALIGN
|
||||
#define R_LARCH_ALIGN 102
|
||||
#endif
|
||||
|
||||
static void get_rel_type_and_sym(struct elf_info *elf, uint64_t r_info,
|
||||
unsigned int *r_type, unsigned int *r_sym)
|
||||
{
|
||||
@@ -1399,9 +1407,16 @@ static void section_rela(struct module *mod, struct elf_info *elf,
|
||||
continue;
|
||||
break;
|
||||
case EM_LOONGARCH:
|
||||
if (!strcmp("__ex_table", fromsec) &&
|
||||
r_type == R_LARCH_SUB32)
|
||||
switch (r_type) {
|
||||
case R_LARCH_SUB32:
|
||||
if (!strcmp("__ex_table", fromsec))
|
||||
continue;
|
||||
break;
|
||||
case R_LARCH_RELAX:
|
||||
case R_LARCH_ALIGN:
|
||||
/* These relocs do not refer to symbols */
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user