[PATCH] D145173: Make section attribute and -ffunction-sections play nicely
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 7 17:17:52 PST 2023
MaskRay added a comment.
The inconsistency stem from the fact that with the default `.text`, the compiler may generate `.text.$suffix` if `-ffunction-sections` is specified or if a COMDAT is needed.
While with an explicit section, there is no such suffix appending mechanism used together with `-ffunction-sections`.
Therefore, there is is a missing feature and perhaps GCC wants to add it as well, but just changing the semantics silently may upset some users.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145173/new/
https://reviews.llvm.org/D145173
More information about the cfe-commits
mailing list