Subject: Re: Proposal: support object file-based on-disk module format
Date: Tuesday 8th July 2014 18:21:00 UTC (over 4 years ago)
Hi Peter, This sounds sensible to me. There is one thing that does concern me though. IIRC when you create object files with additional sections the GNU ld linker (possibly others too) will concatenate sections it doesn't recognise into the final executable. There is actually a hacky tool called whole-program-llvm  which actually uses this to get a list of paths to LLVM bitcode files that make up the final executable. If I've understood your proposal correctly then when compiling and using the GNU ld linker you would end up with all the bitcode files embedded in the final executable. Is this intentional?  https://github.com/travitch/whole-program-llvm Thanks, Dan Liew.