“.rodata.str1.4”的连接(link)问题
SECTIONS{. =0x00000000;.text :{*(.text)*(.rodata.str1.4)*(.rodata)}. =ALIGN(32);.data :{*(.data)}. =ALIGN(32);__bss_start__ = .;.bss :{*(.bss)}__bss_end__ = .;}【其他】
如果没有在在连接脚本里边加上 .rodata.str1.4 还可能出现如下错误:
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: error: no memory region specified for loadable section `.rodata.str1.4'
【参考资料】
http://telltruth.blogbus.com/logs/15705483.html
http://blog.chinaunix.net/uid-121788-id-2955078.html
http://blog.21ic.com/user1/2983/archives/2008/53972.html