[PATCH] D30964: [ELF] Restore GC handling of LINK_ORDER, C-named sections
Evgeniy Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 15 14:15:30 PDT 2017
eugenis added a comment.
In https://reviews.llvm.org/D30964#701308, @ruiu wrote:
> This seems correct, but I'm not totally convinced that this is the right thing to do, because I could probably argue the other way. How did you notice this, and why do you want this behavior?
See https://reviews.llvm.org/D30121 and related commits.
ASan is using this to emit metadata for global variables. Metadata sections have LINK_ORDER pointing to the corresponding global section, with the intention that the presence of metadata does not affect the liveness of globals in any way, and at runtime __start_asan_globals .. __stop_asan_globals can be used to enumerate metadata for the surviving globals.
Repository:
rL LLVM
https://reviews.llvm.org/D30964
More information about the llvm-commits
mailing list