[PATCH] D28481: Respect section groups in GC

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 17:53:39 PST 2017


pcc added a comment.

In https://reviews.llvm.org/D28481#640854, @ruiu wrote:

> We just cut a corner when writing the code to handle section names valid as C identifiers. Because the number of such sections are usually small, we just made all such sections alive. However, if you need more precise GC, I think you could do that.


How would you propose to change the GC?

> Can I ask why ASAN uses __start_ and __end_ symbols?

The `__start_` and `__stop_` symbols define the address range in which the metadata globals are stored. See Evgeniy's other change, https://reviews.llvm.org/D28498, which sets up a call to `__asan_register_globals` passing in that address range.


Repository:
  rL LLVM

https://reviews.llvm.org/D28481





More information about the llvm-commits mailing list