gas:LoongArch: Fix segment error in compilation due to too long symbol name.
authorliuzhensong <liuzhensong@loongson.cn>
Sun, 20 Mar 2022 01:18:00 +0000 (09:18 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Sun, 20 Mar 2022 01:37:12 +0000 (09:37 +0800)
commit5fb13d7ef45088d8c2b89a3b4b22c36a0e3a5715
tree8c3e44bf1f8f1d03b64c9b24ef488d369c2371f3
parent748594bc07f39fda35aba5f46d6e058b42c9c49d
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
gas/config/tc-loongarch.c
include/opcode/loongarch.h
opcodes/loongarch-coder.c