------- 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

Reply via email to