forked from OSchip/llvm-project
Fixing section name for Darwin platforms for sanitizer coverage
On Darwin, section names have a 16char length limit. llvm-svn: 305429
This commit is contained in:
parent
2aecdde512
commit
406c113103
|
@ -206,7 +206,7 @@ include_directories(..)
|
||||||
add_subdirectory(no-coverage)
|
add_subdirectory(no-coverage)
|
||||||
add_subdirectory(trace-pc)
|
add_subdirectory(trace-pc)
|
||||||
add_subdirectory(ubsan)
|
add_subdirectory(ubsan)
|
||||||
if (NOT APPLE AND NOT MSVC)
|
if (NOT MSVC)
|
||||||
add_subdirectory(inline-8bit-counters)
|
add_subdirectory(inline-8bit-counters)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ static const char *const SanCov8bitCountersInitName =
|
||||||
"__sanitizer_cov_8bit_counters_init";
|
"__sanitizer_cov_8bit_counters_init";
|
||||||
|
|
||||||
static const char *const SanCovGuardsSectionName = "sancov_guards";
|
static const char *const SanCovGuardsSectionName = "sancov_guards";
|
||||||
static const char *const SanCovCountersSectionName = "sancov_counters";
|
static const char *const SanCovCountersSectionName = "sancov_cntrs";
|
||||||
|
|
||||||
static cl::opt<int> ClCoverageLevel(
|
static cl::opt<int> ClCoverageLevel(
|
||||||
"sanitizer-coverage-level",
|
"sanitizer-coverage-level",
|
||||||
|
|
|
@ -10,4 +10,4 @@ entry:
|
||||||
; CHECK: store i8 %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @__sancov_gen_, i64 0, i64 0), !nosanitize
|
; CHECK: store i8 %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @__sancov_gen_, i64 0, i64 0), !nosanitize
|
||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
; CHECK: call void @__sanitizer_cov_8bit_counters_init(i8* bitcast (i8** @__start___sancov_counters to i8*), i8* bitcast (i8** @__stop___sancov_counters to i8*))
|
; CHECK: call void @__sanitizer_cov_8bit_counters_init(i8* bitcast (i8** @__start___sancov_cntrs to i8*), i8* bitcast (i8** @__stop___sancov_cntrs to i8*))
|
||||||
|
|
Loading…
Reference in New Issue