[PATCH] D54422: [ELF] - Do not ICF two sections with different output sections when using linker scripts

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 12 22:39:25 PST 2018


ruiu added a comment.

I don't think this is necessarily a bug.  At least, "predicating" the name of an output section does not seems a good idea to me. It is getting too tricky, and I don't like to add more complexity here. I generally do not encourage users use linker scripts as it makes linking slower and trickier, and it is to me an acceptable consequence that ICF folds input sections before linker scripts bin input sections to output sections.


https://reviews.llvm.org/D54422





More information about the llvm-commits mailing list