[PATCH] D24644: Pass -ffunction-sections/-fdata-sections along to gold-plugin

Peter Collingbourne via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 3 11:05:49 PDT 2016


pcc added a comment.

> Are you suggesting having them enabled unconditionally in both gold-plugin and gold? That will require changes to both llvm and binutils, and the latter will have effects for other compilers.

I mean in the gold plugin only. There would not need to be any changes to gold because it does not take these parameters directly.

> What about -Wl,-gc-sections, isn't that also needed to make effective use of these options?

Not necessarily, PR22999 would happen with or without gc-sections.


https://reviews.llvm.org/D24644





More information about the cfe-commits mailing list