Checking patch sysdeps/loongarch/dl-machine.h... error: while searching for: /* If using PLTs, fill in the first two entries of .got.plt. */ if (l->l_info[DT_JMPREL]) { extern void _dl_runtime_resolve (void) attribute_hidden; extern void _dl_runtime_profile (void) attribute_hidden; error: patch failed: sysdeps/loongarch/dl-machine.h:270 error: sysdeps/loongarch/dl-machine.h: patch does not apply Checking patch sysdeps/loongarch/dl-trampoline.S... error: while searching for: #include #include #include "dl-link.h" /* Assembler veneer called from the PLT header code for lazy loading. The PLT header passes its own args in t0-t2. */ #ifdef __loongarch_soft_float #define FRAME_SIZE (-((-10 * SZREG) & ALMASK)) #else #define FRAME_SIZE (-((-10 * SZREG - 8 * SZFREG) & ALMASK)) #endif ENTRY (_dl_runtime_resolve) /* Save arguments to stack. */ ADDI sp, sp, -FRAME_SIZE REG_S ra, sp, 9*SZREG REG_S a0, sp, 1*SZREG REG_S a1, sp, 2*SZREG REG_S a2, sp, 3*SZREG REG_S a3, sp, 4*SZREG REG_S a4, sp, 5*SZREG REG_S a5, sp, 6*SZREG REG_S a6, sp, 7*SZREG REG_S a7, sp, 8*SZREG #ifndef __loongarch_soft_float FREG_S fa0, sp, 10*SZREG + 0*SZFREG FREG_S fa1, sp, 10*SZREG + 1*SZFREG FREG_S fa2, sp, 10*SZREG + 2*SZFREG FREG_S fa3, sp, 10*SZREG + 3*SZFREG FREG_S fa4, sp, 10*SZREG + 4*SZFREG FREG_S fa5, sp, 10*SZREG + 5*SZFREG FREG_S fa6, sp, 10*SZREG + 6*SZFREG FREG_S fa7, sp, 10*SZREG + 7*SZFREG #endif /* Update .got.plt and obtain runtime address of callee */ SLLI a1, t1, 1 or a0, t0, zero ADD a1, a1, t1 la a2, _dl_fixup jirl ra, a2, 0 or t1, v0, zero /* Restore arguments from stack. */ REG_L ra, sp, 9*SZREG REG_L a0, sp, 1*SZREG REG_L a1, sp, 2*SZREG REG_L a2, sp, 3*SZREG REG_L a3, sp, 4*SZREG REG_L a4, sp, 5*SZREG REG_L a5, sp, 6*SZREG REG_L a6, sp, 7*SZREG REG_L a7, sp, 8*SZREG #ifndef __loongarch_soft_float FREG_L fa0, sp, 10*SZREG + 0*SZFREG FREG_L fa1, sp, 10*SZREG + 1*SZFREG FREG_L fa2, sp, 10*SZREG + 2*SZFREG FREG_L fa3, sp, 10*SZREG + 3*SZFREG FREG_L fa4, sp, 10*SZREG + 4*SZFREG FREG_L fa5, sp, 10*SZREG + 5*SZFREG FREG_L fa6, sp, 10*SZREG + 6*SZFREG FREG_L fa7, sp, 10*SZREG + 7*SZFREG #endif ADDI sp, sp, FRAME_SIZE /* Invoke the callee. */ jirl zero, t1, 0 END (_dl_runtime_resolve) ENTRY (_dl_runtime_profile) /* LoongArch we get called with: error: patch failed: sysdeps/loongarch/dl-trampoline.S:19 error: sysdeps/loongarch/dl-trampoline.S: patch does not apply Checking patch sysdeps/loongarch/dl-trampoline.h... error: sysdeps/loongarch/dl-trampoline.h: already exists in working directory Checking patch sysdeps/loongarch/ldsodefs.h... error: while searching for: #define _LOONGARCH_LDSODEFS_H 1 #include struct La_loongarch_regs; struct La_loongarch_retval; error: patch failed: sysdeps/loongarch/ldsodefs.h:20 error: sysdeps/loongarch/ldsodefs.h: patch does not apply Checking patch sysdeps/loongarch/sys/asm.h... error: while searching for: /* Macros to handle different pointer/register sizes for 32/64-bit code. */ #define SZREG 8 #define SZFREG 8 #define REG_L ld.d #define REG_S st.d #define SRLI srli.d error: patch failed: sysdeps/loongarch/sys/asm.h:25 error: sysdeps/loongarch/sys/asm.h: patch does not apply Checking patch sysdeps/loongarch/sys/regdef.h... error: while searching for: #define fs6 $f30 #define fs7 $f31 #endif /* _SYS_REGDEF_H */ error: patch failed: sysdeps/loongarch/sys/regdef.h:90 error: sysdeps/loongarch/sys/regdef.h: patch does not apply Checking patch sysdeps/unix/sysv/linux/loongarch/bits/hwcap.h... error: sysdeps/unix/sysv/linux/loongarch/bits/hwcap.h: already exists in working directory Checking patch sysdeps/unix/sysv/linux/loongarch/cpu-features.h... error: sysdeps/unix/sysv/linux/loongarch/cpu-features.h: already exists in working directory