From: lijian1 Date: Mon, 24 Nov 2025 07:53:50 +0000 (+0800) Subject: LoongArch: set PRSTATUS_SIZE=0x1e0 to match kernel's struct elf_prstatus size X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;ds=sidebyside;p=thirdparty%2Fbinutils-gdb.git LoongArch: set PRSTATUS_SIZE=0x1e0 to match kernel's struct elf_prstatus size 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 --- diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c index 4abfd80fd47..a2d40a8e023 100644 --- a/bfd/elfnn-loongarch.c +++ b/bfd/elfnn-loongarch.c @@ -6538,7 +6538,7 @@ loongarch_elf_copy_indirect_symbol (struct bfd_link_info *info, _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