summaryrefslogtreecommitdiff
path: root/arch/microblaze/reloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze/reloc.h')
-rw-r--r--arch/microblaze/reloc.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/microblaze/reloc.h b/arch/microblaze/reloc.h
index 81add5e9..60f74225 100644
--- a/arch/microblaze/reloc.h
+++ b/arch/microblaze/reloc.h
@@ -1,7 +1,14 @@
#include <string.h>
#include <elf.h>
+#include <endian.h>
-#define ETC_LDSO_PATH "/etc/ld-musl-microblaze.path"
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+#define ENDIAN_SUFFIX "el"
+#else
+#define ENDIAN_SUFFIX ""
+#endif
+
+#define LDSO_ARCH "microblaze" ENDIAN_SUFFIX
#define IS_COPY(x) ((x)==R_MICROBLAZE_COPY)
#define IS_PLT(x) ((x)==R_MICROBLAZE_JUMP_SLOT)