d:/pai/aipi-open-kits/aithinker_ai-m6x_sdk/toolchain_gcc_t-head_windows/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: build_out\bl616_gba_bl616.elf section `.bss' will not fit in region `ram_memory'
d:/pai/aipi-open-kits/aithinker_ai-m6x_sdk/toolchain_gcc_t-head_windows/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld.exe: region `ram_memory' overflowed by 510760 bytes
复制代码
问了GPT,说是
section '.bss' will not fit in region 'ram_memory':这说明了链接器在尝试将.bss节(通常是用来存放未初始化的全局变量或静态变量的内存段)放入名为ram_memory的内存区域时出现了溢出。
region 'ram_memory' overflowed by 510760 bytes:这是指内存区域ram_memory溢出了510760字节,也就是该区域无法容纳所有的数据。