Empty sections with gcc4
Fabian Cenedese
Cenedese@indel.ch
Wed Dec 13 13:48:00 GMT 2006
At 17:12 12.12.2006 +0100, Fabian Cenedese wrote:
>Hi
>
>#define STRUCT_NAM __attribute__ ((section (".struct_nam")))
>STRUCT_NAM static char aTableName[] = "TableName";
>or
>static char aTableName[] STRUCT_NAM = "TableName";
I found that it works if I leave off the "static". From the docs:
"Use the section attribute with an initialized definition of a global variable"
I thought I have that here. Can anybody tell me, what the difference is?
Why doesn't .section work with static?
Thanks
bye Fabi
More information about the Gcc-help
mailing list