[Bug c/37506] attribute section is not working with constant strings

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Sep 14 04:46:00 GMT 2008



------- Comment #3 from pinskia at gcc dot gnu dot org  2008-09-14 04:45 -------
char* y __attribute__ ((__section__(".xxx_section"))) = "Hello World!";

That only puts the pointer variable y into that section and not the string. 
The correct way is do like what you do for x.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37506



More information about the Gcc-bugs mailing list