HomePhabricator

[SanitizerCoverage] Create comdat for global arrays.

Description

[SanitizerCoverage] Create comdat for global arrays.

Summary:
Place global arrays in comdat sections with their associated functions.
This makes sure they are stripped along with the functions they
reference, even on the BFD linker.

Reviewers: eugenis

Reviewed By: eugenis

Subscribers: eraman, hiraditya, llvm-commits

Differential Revision: https://reviews.llvm.org/D51902

Details

Committed
morehouseSep 11 2018, 8:23 AM
Reviewer
eugenis
Differential Revision
D51902: [SanitizerCoverage] Create comdat for global arrays.
Parents
rL341950: [clangd] Add unittests for D51917
Branches
Unknown
Tags
Unknown