We were previously using the (static) addSynthetic function to create
*_start/*_end symbols. This function was doing almost the same thing as
addOptionalSynthetic, except that it would also create the symbol in the
case where it is unreferenced. Because the symbol has hidden visibility,
creating it in that case would have no effect other than adding another
entry to the static symbol table. Remove addSynthetic and change callers to
use addOptionalSynthetic instead.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
My memory about it is not clear, but I think there was a reason to add addSynethic function. Eugene may know about that.
Comment Actions
addSynthetic() was introduced to allow defining start/end symbols in linker scripts
Please take a look at
https://reviews.llvm.org/D23405
Comment Actions
LGTM.
Eugene, if you have any comment, please leave a comment as a post-commit review.