Re: attribute section in static locals

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

 



"Paulo J. Matos" <paulo@xxxxxxxxxxxxxxx> writes:

> The GCC manual says in
> http://gcc.gnu.org/onlinedocs/gcc-4.3.6/gcc/Variable-Attributes.html#index-g_t_0040code_007bsection_007d-variable-attribute-2216
>
> "You may only use the section attribute with a fully initialized
> global definition because of the way linkers work. "
>
> However, a static local seems to be ok. Should the documentation be updated?

Sure.

Note that the docs have already changed somewhat in that area, but they
still don't say that a function local static variable is OK.

Ian


[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