projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move riscv64 register index constants to signal.h
[musl]
/
arch
/
mips
/
reloc.h
diff --git
a/arch/mips/reloc.h
b/arch/mips/reloc.h
index
9b40e3d
..
88d2363
100644
(file)
--- a/
arch/mips/reloc.h
+++ b/
arch/mips/reloc.h
@@
-1,4
+1,8
@@
-#include <endian.h>
+#if __mips_isa_rev >= 6
+#define ISA_SUFFIX "r6"
+#else
+#define ISA_SUFFIX ""
+#endif
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define ENDIAN_SUFFIX "el"
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define ENDIAN_SUFFIX "el"
@@
-12,7
+16,7
@@
#define FP_SUFFIX ""
#endif
#define FP_SUFFIX ""
#endif
-#define LDSO_ARCH "mips" ENDIAN_SUFFIX FP_SUFFIX
+#define LDSO_ARCH "mips"
ISA_SUFFIX
ENDIAN_SUFFIX FP_SUFFIX
#define TPOFF_K (-0x7000)
#define TPOFF_K (-0x7000)
@@
-24,7
+28,7
@@
#define REL_TPOFF R_MIPS_TLS_TPREL32
#define NEED_MIPS_GOT_RELOCS 1
#define REL_TPOFF R_MIPS_TLS_TPREL32
#define NEED_MIPS_GOT_RELOCS 1
-#define D
YNAMIC_IS_RO 1
+#define D
T_DEBUG_INDIRECT DT_MIPS_RLD_MAP
#define ARCH_SYM_REJECT_UND(s) (!((s)->st_other & STO_MIPS_PLT))
#define CRTJMP(pc,sp) __asm__ __volatile__( \
#define ARCH_SYM_REJECT_UND(s) (!((s)->st_other & STO_MIPS_PLT))
#define CRTJMP(pc,sp) __asm__ __volatile__( \