This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/43729] Mach-O LTO support needed for darwin
- From: "davek at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Apr 2010 18:39:54 -0000
- Subject: [Bug target/43729] Mach-O LTO support needed for darwin
- References: <bug-43729-11113@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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