aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormengqinggang <mengqinggang@loongson.cn>2024-04-07 16:34:42 +0800
committerliuzhensong <liuzhensong@loongson.cn>2024-04-20 12:10:40 +0800
commit20eee7540b9f2615f7661393756fec0bb62a1495 (patch)
tree4fab76b94a7d0a45034c7ef66d98ce14c845a99f /include
parent02fa4bbec1974df262f44e13023071f5ae4fc9b1 (diff)
downloadgdb-20eee7540b9f2615f7661393756fec0bb62a1495.zip
gdb-20eee7540b9f2615f7661393756fec0bb62a1495.tar.gz
gdb-20eee7540b9f2615f7661393756fec0bb62a1495.tar.bz2
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.
Diffstat (limited to 'include')
-rw-r--r--include/opcode/loongarch.h1
1 files changed, 1 insertions, 0 deletions
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);