summaryrefslogtreecommitdiff
path: root/ldso/ldso
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-05-22 10:26:26 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2016-05-24 20:38:31 +0200
commitb1fb0d0bf5d09bf9dbdbc320814bd087d4d26460 (patch)
tree365626d43acf93b38f482ab6afcf708f4853eccc /ldso/ldso
parent6a8ccc95528f5e86a8770ed15ce89609b5b3dee9 (diff)
microblaze: fix ELF detection in ld.so
Diffstat (limited to 'ldso/ldso')
-rw-r--r--ldso/ldso/microblaze/dl-sysdep.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ldso/ldso/microblaze/dl-sysdep.h b/ldso/ldso/microblaze/dl-sysdep.h
index 2b5521887..b293d27cc 100644
--- a/ldso/ldso/microblaze/dl-sysdep.h
+++ b/ldso/ldso/microblaze/dl-sysdep.h
@@ -30,11 +30,14 @@ do { \
/* Here we define the magic numbers that this dynamic loader should accept */
-#define MAGIC1 EM_MICROBLAZE_OLD
+#define MAGIC1 EM_MICROBLAZE
#undef MAGIC2
/* Used for error messages */
#define ELF_TARGET "microblaze"
+struct elf_resolve;
+unsigned long _dl_linux_resolver(struct elf_resolve * tpnt, int reloc_entry);
+
#define elf_machine_type_class(type) \
(((type) == R_MICROBLAZE_JUMP_SLOT) * ELF_RTYPE_CLASS_PLT \
| ((type) == R_MICROBLAZE_COPY) * ELF_RTYPE_CLASS_COPY)