From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32288 invoked by alias); 1 Oct 2012 18:02:04 -0000 Received: (qmail 31325 invoked by uid 48); 1 Oct 2012 18:01:40 -0000 From: "tom.rini at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/54303] -fdata-sections -ffunction-sections and -fmerge-constants do not work well together Date: Mon, 01 Oct 2012 18:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tom.rini at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-10/txt/msg00049.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54303 --- Comment #8 from Tom Rini 2012-10-01 18:01:37 UTC --- I could be confused, but how is this a linker issue when gcc puts all of the strings into a single section? To reiterate, if you have N functions each with one string in it, on some platforms (ARM) you get one .rodata.str1.4 section and on others you get N .rodata.str.somethings sections.