------- Comment #8 from davek at gcc dot gnu dot org 2010-01-18 16:35 ------- (In reply to comment #7) > Should we perhaps rename all the lto_elf_ stuff to something else, if all of > this also Just Works with COFF?
As I said, WIP; I was certainly thinking of renaming it all to lto_objfile_xxx or some similar prefix in time for the final version. > Can we use a similar approach for Mach-O? 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. > Big kudos for Dave, btw, for working on this. Ah, it's nothing - a simple COFF file reader is no BFD... (pun intended) ;-) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42776