thewrongchristian wrote:
Interesting. What made the difference in the end? Was it just recompiling with clang? Or did you end up stripping the resulting binaries?
I switched to Clang and got linked time optimization working.
the wrongchristian wrote:
Fair enough, but it's unlikely all of that 8MB is actually mapped in. You only need to map in the code that is executed (assuming demand paging), so if the bulk of the files was debug symbols that got removed, then you'll have saved little in the way of memory usage.
My
ELF loading code doesn't do demand paging and copies any segment where p_type == PT_LOAD and p_filesz >= 0.