From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9688 invoked by alias); 14 Mar 2011 03:07:00 -0000 Received: (qmail 9679 invoked by uid 22791); 14 Mar 2011 03:06:59 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Mar 2011 03:06:54 +0000 From: "howarth at nitro dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/48108] New: lto should be containerized in a single mach-o section on darwin X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: howarth at nitro dot med.uc.edu 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: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 14 Mar 2011 03:07:00 -0000 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: 2011-03/txt/msg01353.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48108 Summary: lto should be containerized in a single mach-o section on darwin Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned@gcc.gnu.org ReportedBy: howarth@nitro.med.uc.edu The LTO support on darwin has been disabled... Author: mrs Date: Mon Mar 14 02:47:49 2011 New Revision: 170929 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170929 Log: 2011-03-13 Jack Howarth PR lto/48086 * configure.ac: Disable LTO on darwin due to an assembler change in Xcode 3.2.6/4.0 that limits the total number of sections/segments to under 256. * configure: Regenerate. Modified: trunk/ChangeLog trunk/configure trunk/configure.ac due to the mishandling of , possible assembler bug exposed by LTO, by the Apple assembler developer where a solid 255 limit has been now imposed on all the sections= possible in a mach-o object file. This breaks the current implementation in gcc/lto/lto-object.c which relied on the ability to have an unlimited number of symbol-less GNU_LTO sections at the end of the object file. The darwin LTO support in gcc/lto/lto-object.c and gcc/config/darwin.c needs to be written to containerize all of these GNU_LTO sections into a single mach-o section. Hopefully this can be done without having to resort to an elf container, which would introduce an undesired dependency on libelf for FSF gcc on darwin.