HomePhabricator

[asan] Avoid putting globals in a comdat section when targetting elf.

Authored by pgousseau on Feb 24 2021, 4:01 AM.

Description

[asan] Avoid putting globals in a comdat section when targetting elf.

Putting globals in a comdat for dead-stripping changes the semantic and
can potentially cause false negative odr violations at link time.
If odr indicators are used, we keep the comdat sections, as link time
odr violations will be dectected for the odr indicator symbols.

This fixes PR 47925

Details

Committed
pgousseauFeb 24 2021, 4:01 AM
Parents
rGb94c215592bd: [Utils] collectBitParts - add truncate() handling
Branches
Unknown
Tags
Unknown