From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7891) id 1A23E3858C2D; Thu, 3 Nov 2022 13:08:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A23E3858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667480923; bh=5+dY3g1ovDi9D/grqE+WhHkCOgLqNfwRHwtVU+kKL/A=; h=From:To:Subject:Date:From; b=tZMMLkWUCL3RpqaOVyzqlvkiYrzVCIHlnpahPSVG3GzJHm2zN+u1H1J/j9c4RPGsK h17nYGh9JdfLq5zSLxEljmdi8Qb1bysFbxRXgIIwm/bLg1z4QkIkrUIi82mWAwZLOe DDRvc2QuaPy8NdlqwarWpbvIaUuE5kuucvhkGv8Q= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Yinyu Cai To: glibc-cvs@sourceware.org Subject: [glibc/release/2.36/master] LoongArch: Fix ABI related macros in elf.h to keep consistent with binutils[1]. X-Act-Checkin: glibc X-Git-Author: caiyinyu X-Git-Refname: refs/heads/release/2.36/master X-Git-Oldrev: dd4131c8322891a0ad7cfb661efa41aecc02b581 X-Git-Newrev: 2fce85f67c56e46863db40b8ca75bbf0fa993053 Message-Id: <20221103130843.1A23E3858C2D@sourceware.org> Date: Thu, 3 Nov 2022 13:08:41 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2fce85f67c56e46863db40b8ca75bbf0fa993053 commit 2fce85f67c56e46863db40b8ca75bbf0fa993053 Author: caiyinyu Date: Wed Oct 12 20:28:42 2022 +0800 LoongArch: Fix ABI related macros in elf.h to keep consistent with binutils[1]. [1]: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=c4a7e6b56218e1d5a858682186b542e2eae01a4a;hp=0d94a8735055432029237612a6eb9165db1ec9dd [2]: Reference: https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html#_e_flags_identifies_abi_type_and_version Diff: --- elf/elf.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/elf/elf.h b/elf/elf.h index 02a1b3f52f..014393f3cc 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -4085,8 +4085,11 @@ enum #define R_NDS32_TLS_DESC 119 /* LoongArch ELF Flags */ -#define EF_LARCH_ABI 0x07 -#define EF_LARCH_ABI_LP64D 0x03 +#define EF_LARCH_ABI_MODIFIER_MASK 0x07 +#define EF_LARCH_ABI_SOFT_FLOAT 0x01 +#define EF_LARCH_ABI_SINGLE_FLOAT 0x02 +#define EF_LARCH_ABI_DOUBLE_FLOAT 0x03 +#define EF_LARCH_OBJABI_V1 0x40 /* LoongArch specific dynamic relocations */ #define R_LARCH_NONE 0