projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d33705c
)
LoongArch: Fix ABI related macros in elf.h to keep consistent with binutils[1].
author
caiyinyu
<caiyinyu@loongson.cn>
Wed, 12 Oct 2022 12:28:42 +0000
(20:28 +0800)
committer
caiyinyu
<caiyinyu@loongson.cn>
Thu, 3 Nov 2022 13:02:56 +0000
(21:02 +0800)
[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
patch
|
blob
|
history
diff --git
a/elf/elf.h
b/elf/elf.h
index
f51300b
..
920e689
100644
(file)
--- a/
elf/elf.h
+++ b/
elf/elf.h
@@
-4093,8
+4093,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