summaryrefslogtreecommitdiff
path: root/arm-riscos-gnueabihf/recipes/patches/gccsdk/elf2aif-no-abi-check.p
blob: 3ad63729ee283a70195951888c7e1e642b5e6549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: elf2aif/src/elf2aif.c
===================================================================
--- elf2aif/src/elf2aif.c	(revision 7698)
+++ elf2aif/src/elf2aif.c	(working copy)
@@ -201,7 +201,11 @@
       return EXIT_FAILURE;
     }
 
+#ifndef __ARM_EABI__
   if (elf_ehdr.e_ident[EI_OSABI] != ELFOSABI_ARM)
+#else
+  if (elf_ehdr.e_ident[EI_OSABI] != ELFOSABI_NONE)
+#endif
     {
       fprintf (stderr, "ELF file '%s' is not for ARM\n", elf_filename);
       return EXIT_FAILURE;