public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] LoongArch: Fix ABI related macros in elf.h to keep consistent with binutils[1].
@ 2022-10-31  3:43 caiyinyu
  2022-10-31  6:34 ` Xi Ruoyao
  0 siblings, 1 reply; 9+ messages in thread
From: caiyinyu @ 2022-10-31  3:43 UTC (permalink / raw)
  To: adhemerval.zanella; +Cc: libc-alpha, i.swmail, xry111, caiyinyu

[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
---
 elf/elf.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/elf/elf.h b/elf/elf.h
index 3f08823a30..383eb5fbff 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -4093,8 +4093,10 @@ enum
 #define R_NDS32_TLS_DESC	119
 
 /* LoongArch ELF Flags */
-#define EF_LARCH_ABI    	0x07
-#define EF_LARCH_ABI_LP64D	0x03
+#define EF_LOONGARCH_ABI_SOFT_FLOAT     0x1
+#define EF_LOONGARCH_ABI_SINGLE_FLOAT   0x2
+#define EF_LOONGARCH_ABI_DOUBLE_FLOAT   0x3
+#define EF_LOONGARCH_OBJABI_V1          0x40
 
 /* LoongArch specific dynamic relocations */
 #define R_LARCH_NONE		0
-- 
2.31.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-11-02 10:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-31  3:43 [PATCH] LoongArch: Fix ABI related macros in elf.h to keep consistent with binutils[1] caiyinyu
2022-10-31  6:34 ` Xi Ruoyao
2022-10-31 13:12   ` Carlos O'Donell
2022-11-01  2:00     ` Xi Ruoyao
2022-11-01  2:02     ` caiyinyu
2022-11-01  2:14       ` Xi Ruoyao
2022-11-02  6:13         ` caiyinyu
2022-11-02  6:19           ` WANG Xuerui
2022-11-02 10:41             ` Xi Ruoyao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).