SECTIONS { //段
. = 0x30008000;//执行脚本的起始地址
. = ALIGN(4);//实现四字节对齐
.text : //代码段
{
led.o (.text) //代码段的开始
*(.text)
}
. = ALIGN(4);
.rodata :
{
*(.rodata)
}
. = ALIGN(4);
.data : //数据段
{
*(.data)
}
. = ALIGN(4);
bss_start = .;//定义变量
.bss : //bss段
{
*(.bss) *(COMMON)
}
bss_end = .;
}