From 20eee7540b9f2615f7661393756fec0bb62a1495 Mon Sep 17 00:00:00 2001 From: mengqinggang Date: Sun, 7 Apr 2024 16:34:42 +0800 Subject: LoongArch: Add -mignore-start-align option Ignore .align at the start of a section may result in misalignment when partial linking. Manually add -mignore-start-align option without partial linking. Gcc -falign-functions add .align 5 to the start of a section, it causes some error message mismatch. Set these testcases to xfail on LoongArch target. --- include/opcode/loongarch.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/opcode/loongarch.h b/include/opcode/loongarch.h index 251daf1..965a164 100644 --- a/include/opcode/loongarch.h +++ b/include/opcode/loongarch.h @@ -256,6 +256,7 @@ dec2 : [1-9][0-9]? int relax; int thin_add_sub; + int ignore_start_align; } LARCH_opts; extern size_t loongarch_insn_length (insn_t insn); -- cgit v1.1