When I'm using the following syntax :
Code: Select all
printf("my test string")
In my linker script, I set up a section called .rodata, which I thought was a common name for the read-only data section.
But I found out that gcc (version 3.2.2) was putting my read-only strings in as section called .rodata.str1.1
So when I boot up my kernel, it was saying that the .rodata section was empty, and it really was !
I would like to know if it is possible to force gcc to use my own section names ?