diff options
author | mengqinggang <mengqinggang@loongson.cn> | 2023-10-01 15:29:44 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2024-01-24 16:32:34 +0800 |
commit | 27a750dd896cfc13f4368e4c8df14e6ea5bb718f (patch) | |
tree | 64ce75db7e800f3a7f8357e379e44958b1a477c9 /gas/config/tc-loongarch.c | |
parent | ab9bb4101c5036a551e88745bebffb4c4d5aaed5 (diff) | |
download | gdb-27a750dd896cfc13f4368e4c8df14e6ea5bb718f.zip gdb-27a750dd896cfc13f4368e4c8df14e6ea5bb718f.tar.gz gdb-27a750dd896cfc13f4368e4c8df14e6ea5bb718f.tar.bz2 |
LoongArch: gas: Don't define LoongArch .align
Gcc may generate "\t.align\t%d,54525952,4\n" before commit
b20c7ee066cb7d952fa193972e8bc6362c6e4063. To write 54525952 (NOP) to object
file, we call s_align_ptwo (-4). It result in alignment padding must be a
multiple of 4 if .align has second parameter.
Use default s_align_ptwo for .align.
Diffstat (limited to 'gas/config/tc-loongarch.c')
-rw-r--r-- | gas/config/tc-loongarch.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/gas/config/tc-loongarch.c b/gas/config/tc-loongarch.c index 863ac9c..3c7d400 100644 --- a/gas/config/tc-loongarch.c +++ b/gas/config/tc-loongarch.c @@ -436,18 +436,6 @@ loongarch_mach (void) static const expressionS const_0 = { .X_op = O_constant, .X_add_number = 0 }; -static void -s_loongarch_align (int arg) -{ - const char *t = input_line_pointer; - while (!is_end_of_line[(unsigned char) *t] && *t != ',') - ++t; - if (*t == ',') - s_align_ptwo (arg); - else - s_align_ptwo (0); -} - /* Handle the .dtprelword and .dtpreldword pseudo-ops. They generate a 32-bit or 64-bit DTP-relative relocation (BYTES says which) for use in DWARF debug information. */ @@ -479,7 +467,6 @@ s_dtprel (int bytes) static const pseudo_typeS loongarch_pseudo_table[] = { - { "align", s_loongarch_align, -4 }, { "dword", cons, 8 }, { "word", cons, 4 }, { "half", cons, 2 }, |