Bug#661716: ocaml: adapt testsuite/tests/asmcomp/i386.S for hurd-i386
the asmcomp tests fail to link on hurd-i386, because the "call_gen_code"
symbol is missing.
The problem is that in testsuite/tests/asmcomp/i386.S the #define's that
are enabled for hurd are wrong. Using the linux_elf ones (just also it
is done in asmrun/i386.S) for hurd makes the 11 asmcomp tests compile
and run successfully.
(I guess also the same could be applied for kFreeBSD, but I did not
@@ -15,7 +15,7 @@
/* Linux with ELF binaries does not prefix identifiers with _.
Linux with a.out binaries, FreeBSD, and NextStep do. */
+#if defined(SYS_linux_elf) || defined(SYS_gnu)
#define G(x) x
#define FUNCTION_ALIGN 16