[PATCH] D44917: Force SHF_MERGE optimizations with -r

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 27 08:47:47 PDT 2018


ruiu added a comment.

I don't intend to break things that work with your proprietary linker, but the similarity of lld's -O0 and your proprietary linker's feature is a coincidence. I think we reserve the right to do anything that we think make the linker faster for -O0, and it may or may not merge sections. If merging section is faster than not doing that (and that could happen if merging section reduces data to be written significantly), we may turn section merging on for -O0. So it is perhaps a bit too dangerous to depend on the current precise behavior of lld.


https://reviews.llvm.org/D44917





More information about the llvm-commits mailing list