Matt Morehouse
3bea25e554
[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
llvm-svn: 342186
2018-09-13 21:45:55 +00:00
Matt Morehouse
f0d7daa972
Revert "[SanitizerCoverage] Create comdat for global arrays."
...
This reverts r341987 since it will cause trouble when there's a module
ID collision.
llvm-svn: 341995
2018-09-11 21:15:41 +00:00
Matt Morehouse
7ce6032432
[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
llvm-svn: 341987
2018-09-11 20:10:40 +00:00
Matt Morehouse
40fbdd0c4f
Revert "[SanitizerCoverage] Create comdat for global arrays."
...
This reverts r341951 due to bot breakage.
llvm-svn: 341965
2018-09-11 17:20:14 +00:00
Matt Morehouse
eac270caf4
[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
llvm-svn: 341951
2018-09-11 15:23:14 +00:00
Kostya Serebryany
bfc83fa8d7
[sanitizer-coverage] don't instrument available_externally functions
...
llvm-svn: 309611
2017-07-31 20:00:22 +00:00
Kostya Serebryany
bb6f079a45
[sanitizer-coverage] ensure minimal alignment for coverage counters and guards
...
llvm-svn: 309610
2017-07-31 19:49:45 +00:00
George Karpenkov
a793cfb441
Revert "Fixes for tests for r303698"
...
This reverts commit 69bfaf72e7502eb08bbca88a57925fa31c6295c6.
llvm-svn: 303709
2017-05-24 00:29:08 +00:00
George Karpenkov
65ab07b1f1
Fixes for tests for r303698
...
llvm-svn: 303701
2017-05-23 22:42:34 +00:00
Kostya Serebryany
be87d480ff
[sanitizer-coverage] remove stale code
...
llvm-svn: 300769
2017-04-19 21:48:09 +00:00
Justin Bogner
41e632bf6b
SanitizerCoverage: Support sanitizer guard section on darwin
...
MachO's sections need a segment as well as a section name, and the
section start and end symbols are spelled differently than on ELF.
llvm-svn: 293733
2017-02-01 02:38:39 +00:00
Kostya Serebryany
a9b0dd0e51
[sanitizer-coverage/libFuzzer] make the guards for trace-pc 32-bit; create one array of guards per function, instead of one guard per BB. reorganize the code so that trace-pc-guard does not create unneeded globals
...
llvm-svn: 282735
2016-09-29 17:43:24 +00:00
Kostya Serebryany
8ad4155745
[sanitizer-coverage] change trace-pc to use 8-byte guards
...
llvm-svn: 281809
2016-09-17 05:03:05 +00:00
Kostya Serebryany
da718e55cf
[sanitizer-coverage] add yet another flavour of coverage instrumentation: trace-pc-guard. The intent is to eventually replace all of {bool coverage, 8bit-counters, trace-pc} with just this one. LLVM part
...
llvm-svn: 281431
2016-09-14 01:39:35 +00:00
Mike Aizatsky
70ea45306a
[sancov] enabling coverage edge pruning by default.
...
Differential Revision: http://reviews.llvm.org/D18844
llvm-svn: 265615
2016-04-06 23:24:37 +00:00
Kostya Serebryany
3c767db3c5
[libFuzzer] don't emit callbacks to sanitizer run-time in -fsanitize-coverage=trace-pc mode; update libFuzzer doc for previous commit
...
llvm-svn: 262110
2016-02-27 05:45:12 +00:00
Kostya Serebryany
d4590c7304
[sanitizer-coverage] implement -fsanitize-coverage=trace-pc. This is similar to trace-bb, but has a different API. We already use the equivalent flag in GCC for Linux kernel fuzzing. We may be able to use this flag with AFL too
...
llvm-svn: 261159
2016-02-17 21:34:43 +00:00
Kostya Serebryany
d421db05bb
[asan] simplify the tracing code, make it use the same guard variables as coverage
...
llvm-svn: 225103
2015-01-03 00:54:43 +00:00
Kostya Serebryany
cb45b126fb
[asan] add experimental basic-block tracing to asan-coverage; also fix -fsanitize-coverage=3 which was broken by r221718
...
llvm-svn: 222290
2014-11-19 00:22:58 +00:00