From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32714 invoked by alias); 26 Apr 2010 18:40:39 -0000 Received: (qmail 32403 invoked by uid 48); 26 Apr 2010 18:39:54 -0000 Date: Mon, 26 Apr 2010 18:40:00 -0000 Message-ID: <20100426183954.32402.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/43729] Mach-O LTO support needed for darwin In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "davek 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/msg02763.txt.bz2 ------- Comment #10 from davek at gcc dot gnu dot org 2010-04-26 18:39 ------- (In reply to comment #1) > 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. Oh, and the one last thing I forgot to mention: update is_elf_or_coff() in collect2.c so it recognizes Mach-O object files as well as ELF/COFF. (That may be evident by now anyway, but I thought I'd leave it here for the record anyway.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43729