From ea16498d5a740e2888feb2f8bce92d9565baf244 Mon Sep 17 00:00:00 2001 From: Kuan-Lin Chen Date: Thu, 29 Jan 2015 15:49:02 +0800 Subject: NDS32: Set branch instruction to relaxable. Relaxable fragments can be relaxed when there are alignment requirements. Besides, insert a dummy fragment in the final to make sure that all alignment is traversed. Finally, convert these fragments in md_convert_frag with relax_table. --- opcodes/nds32-asm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'opcodes') diff --git a/opcodes/nds32-asm.c b/opcodes/nds32-asm.c index 9a63291..406cc7c 100644 --- a/opcodes/nds32-asm.c +++ b/opcodes/nds32-asm.c @@ -2270,7 +2270,8 @@ retry_dot: pinsn->opcode = opc; if (opc == NULL) { - pdesc->result = NASM_ERR_SYNTAX; + if (pdesc->result == NASM_OK) + pdesc->result = NASM_ERR_SYNTAX; goto out; } -- cgit v1.1