[PATCH] D25544: ELF: Override DSO definitions when creating __start_* and __stop_* symbols.

Ivan Krasin via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 13 15:11:03 PDT 2016


krasin added a comment.

In https://reviews.llvm.org/D25544#569700, @joerg wrote:

> You want to allow the main program to get the start/stop of a DSO it links against? Am I understanding you correct?


Yes, this is correct. One of the major reasons to allow that is that tcmalloc relies on this interface for the malloc hooks:
https://cs.chromium.org/chromium/src/third_party/tcmalloc/vendor/src/base/basictypes.h?q=ATTRIBUTE_SECTION&sq=package:chromium&dr=CSs&l=227


https://reviews.llvm.org/D25544





More information about the llvm-commits mailing list