attribute section in static locals

Ian Lance Taylor
Thu Dec 8 01:12:00 GMT 2011

"Paulo J. Matos" <> writes:

> The GCC manual says in
> "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?


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.


More information about the Gcc-help mailing list