From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19513 invoked by alias); 14 Sep 2008 04:46:31 -0000 Received: (qmail 18043 invoked by uid 48); 14 Sep 2008 04:45:05 -0000 Date: Sun, 14 Sep 2008 04:46:00 -0000 Message-ID: <20080914044505.18042.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/37506] attribute section is not working with constant strings In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-09/txt/msg01660.txt.bz2 ------- 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