Re: Empty sections with gcc4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux