summaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorKuan-Lin Chen <kuanlinchentw@gmail.com>2015-01-29 15:49:02 +0800
committerKuan-Lin Chen <kuanlinchentw@gmail.com>2015-01-29 16:29:42 +0800
commitea16498d5a740e2888feb2f8bce92d9565baf244 (patch)
tree6011e41ba6f6daf9eb0258ae19ad385ebfde5a6d /opcodes
parent3d7ad9b42685b426329370cdb8bebc9cda6d8911 (diff)
downloadbinutils-gdb-ea16498d5a740e2888feb2f8bce92d9565baf244.tar.gz
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.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/nds32-asm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/nds32-asm.c b/opcodes/nds32-asm.c
index 9a632912060..406cc7cf5a2 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;
}