]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
LoongArch: set PRSTATUS_SIZE=0x1e0 to match kernel's struct elf_prstatus size master
authorlijian1 <lijian1@kylinos.cn>
Mon, 24 Nov 2025 07:53:50 +0000 (15:53 +0800)
committercailulu <cailulu@loongson.cn>
Tue, 25 Nov 2025 11:25:42 +0000 (19:25 +0800)
As PRSTATUS_SIZE is now with the value 0x1d8, which causes inconsistency with the kernel
definition and then can not lead to the correct branch for loongarch64 backend.

With the correct value 0x1e0 for the master branch, the loongarch64 banckend will work well.

Signed-off-by: Li Jian <lijian1@kylinos.cn>
bfd/elfnn-loongarch.c

index 4abfd80fd4720925d7feadd03abc1fe594c3fdf8..a2d40a8e023e22d6957ea8021d81007ca42a8b14 100644 (file)
@@ -6538,7 +6538,7 @@ loongarch_elf_copy_indirect_symbol (struct bfd_link_info *info,
   _bfd_elf_link_hash_copy_indirect (info, dir, ind);
 }
 
   _bfd_elf_link_hash_copy_indirect (info, dir, ind);
 }
 
-#define PRSTATUS_SIZE              0x1d8
+#define PRSTATUS_SIZE              0x1e0
 #define PRSTATUS_OFFSET_PR_CURSIG   0xc
 #define PRSTATUS_OFFSET_PR_PID     0x20
 #define ELF_GREGSET_T_SIZE         0x168
 #define PRSTATUS_OFFSET_PR_CURSIG   0xc
 #define PRSTATUS_OFFSET_PR_PID     0x20
 #define ELF_GREGSET_T_SIZE         0x168