Currently, the build, starting with commit 6da45946, fails with
alloca-bt.S:135: error: unimp: reloc 'R_AARCH64_CALL26' unknown
The problem could be that #ifdef __aarch64__ is checking the host
architecture instead of the target.
This patch kicks the can over to ARM64, but I didn't test it there.
diff --git a/tccasm.c b/tccasm.c
index 1c0e1b86..9e89f5a3 100644
--- a/tccasm.c
+++ b/tccasm.c
@@ -991,7 +991,7 @@ static void asm_parse_directive(TCCState *s1, int
global)
next();
asm_expr(s1, &e);
skip(',');
-#ifdef __aarch64__
+#if defined(TCC_TARGET_ARM64)
if (strcmp(get_tok_str(tok, NULL), "R_AARCH64_CALL26"))
#endif
tcc_error("unimp: reloc '%s' unknown", get_tok_str(tok,
NULL));
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel