]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: relocate-rela: Define all macros for e_machine and reloc types
authorMichal Simek <michal.simek@amd.com>
Fri, 8 Jul 2022 06:15:06 +0000 (08:15 +0200)
committerMichal Simek <michal.simek@amd.com>
Tue, 26 Jul 2022 06:23:55 +0000 (08:23 +0200)
With some old toolchain not all values should be available that's why
better to define all of them to avoid compilation issues.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/e2a66854c5506100eb82b5b33cec7f0b5fca1008.1657260903.git.michal.simek@amd.com
tools/relocate-rela.c

index 5f31d8a746d2ae1f9965637c61cfc88b88d30ec9..2d2a2ed2772c1e4178b2564cc6e2efa74c1093e8 100644 (file)
 #include <string.h>
 #include "compiler.h"
 
+#ifndef EM_AARCH64
+#define EM_AARCH64             183
+#endif
+
 #ifndef R_AARCH64_RELATIVE
 #define R_AARCH64_RELATIVE     1027
 #endif
 
+#ifndef EM_MICROBLAZE
+#define EM_MICROBLAZE          189
+#endif
+
+#ifndef R_MICROBLAZE_NONE
+#define R_MICROBLAZE_NONE      0
+#endif
+
+#ifndef R_MICROBLAZE_32
+#define R_MICROBLAZE_32                1
+#endif
+
+#ifndef R_MICROBLAZE_REL
+#define R_MICROBLAZE_REL       16
+#endif
+
+#ifndef R_MICROBLAZE_GLOB_DAT
+#define R_MICROBLAZE_GLOB_DAT  18
+#endif
+
 static int ei_class;
 
 static uint64_t rela_start, rela_end, text_base, dyn_start;