在函数声明时: char func()__attribute__((section(".my_section"))); 链接脚本: .my_section : { *.o (.my_section) }>ram