From a43e0f1a061de5a00ab9a3ee912bbc08e53e48ef Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Sun, 3 Jan 2016 18:07:08 +0800 Subject: Fix linking error caused by missing .align directive relocation truncated to fit: R_AARCH64_LD_PREL_LO19 against `.rodata' --- src/code-generation.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/code-generation.c b/src/code-generation.c index 8bf85a9..072ba7a 100644 --- a/src/code-generation.c +++ b/src/code-generation.c @@ -187,6 +187,7 @@ static void generate_expression(CcmmcAst *expr, CcmmcState *state, fprintf(state->asm_output, "\tldr\t%s, .LC%zu\n" "\t.section .rodata\n" + "\t.align 2\n" ".LC%zu:\n" "\t.float\t%.9g\n" "\t.text\n", -- cgit v1.2.3