指定变量的段属性 #include<stdio.h> __attribute__((section(".data"))) char i=0; __attribute__((section(".bss"))) char j=0; __attribute__((section(".data"))) char k=0; __attribute__((