From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3757 invoked by alias); 12 Apr 2010 16:00:37 -0000 Received: (qmail 1952 invoked by uid 48); 12 Apr 2010 15:59:44 -0000 Date: Mon, 12 Apr 2010 16:00:00 -0000 Message-ID: <20100412155944.1951.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/43729] MachO LTO support needed for darwin In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "steven 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: 2010-04/txt/msg01174.txt.bz2 ------- Comment #1 from steven at gcc dot gnu dot org 2010-04-12 15:59 ------- >>From http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42776#c8 : > Can we use a similar approach for Mach-O [as for PE-COFF]? I don't speak Mach-O, but yes, the approach should work. You'd start by saying lto_binary_reader=lto-mach-o in config.gcc and adding a new lto/lto-mach-o.c with the same handful of toplevel functions: open and close file, build section hash, and create section and append binary data to section. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43729