On Mon, Mar 14, 2011 at 02:08:47PM -0700, Ian Lance Taylor wrote: > > I think you are overthinking this. What LTO needs to do is really > simple: store byte sequences with names. Anything which lets you do > that will work. You need to write it out in a way that the assembler > will accept; simple-object is not involved at that point. And you need > to modify simple-object to read it. And then you need to modify > simple-object to write it, for the plugin to use. > > Ian
Ian, So do we want to create a new simple-object-lto.c to handle this, so that the code can be used from other object formats, or should we just shoehorn the new code into simple-object-mach-o.c? I am unclear if any target besides darwin is currently using lto/lto-object.c The comment in that file... FIXME: This needs to be kept in sync with darwin.c. */ made me wonder if that was the case now that cygwin/mingw have plugin support. Jack