[PATCH] D95859: [asan] Avoid putting globals in a comdat section.

pierre gousseau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 17 04:40:35 PST 2021


pgousseau added a comment.

In D95859#2568106 <https://reviews.llvm.org/D95859#2568106>, @vitalybuka wrote:

> I guess odr-indicator=1 is for reliable ODR violation detection and odr-indicator=0 of smaller binary size.

Thank you for the comment, yes, this change can potentially break the assumption that odr-indicator=0 reduces binary size, as it will prevent certain linker (eg bfd 2.30), to dead strip unused asan globals’ metadata. Do I understand your point correctly?

But I think correct semantic should take priority over binary size optimizations, please let me know your thoughts on this.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95859/new/

https://reviews.llvm.org/D95859



More information about the llvm-commits mailing list