diff options
author | liuzhensong <liuzhensong@loongson.cn> | 2022-03-20 09:18:00 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2022-03-20 09:37:12 +0800 |
commit | 5fb13d7ef45088d8c2b89a3b4b22c36a0e3a5715 (patch) | |
tree | 8c3e44bf1f8f1d03b64c9b24ef488d369c2371f3 /include | |
parent | 748594bc07f39fda35aba5f46d6e058b42c9c49d (diff) | |
download | gdb-5fb13d7ef45088d8c2b89a3b4b22c36a0e3a5715.zip gdb-5fb13d7ef45088d8c2b89a3b4b22c36a0e3a5715.tar.gz gdb-5fb13d7ef45088d8c2b89a3b4b22c36a0e3a5715.tar.bz2 |
gas:LoongArch: Fix segment error in compilation due to too long symbol name.
Change "char buffer[8192];" into "char *buffer =
(char *) malloc(1000 + 6 * len_str);" in function
loongarch_expand_macro_with_format_map.
gas/
* config/tc-loongarch.c
include/
* opcode/loongarch.h
opcodes/
* loongarch-coder.c
Diffstat (limited to 'include')
-rw-r--r-- | include/opcode/loongarch.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/opcode/loongarch.h b/include/opcode/loongarch.h index a2491a6..c392234 100644 --- a/include/opcode/loongarch.h +++ b/include/opcode/loongarch.h @@ -163,11 +163,11 @@ dec2 : [1-9][0-9]? const char *format, const char *macro, const char *const arg_strs[], const char *(*map) (char esc1, char esc2, const char *arg), char *(*helper) (const char *const arg_strs[], void *context), - void *context); + void *context, size_t len_str); extern char *loongarch_expand_macro ( const char *macro, const char *const arg_strs[], char *(*helper) (const char *const arg_strs[], void *context), - void *context); + void *context, size_t len_str); extern size_t loongarch_bits_imm_needed (int64_t imm, int si); extern void loongarch_eliminate_adjacent_repeat_char (char *dest, char c); |