Displaying 5 results from an estimated 5 matches for "__sanitizer_cov_trace_pc_guard".
2020 May 14
2
Sancov guard semantics for usage between comdats
...ed outside of their comdat group due to inlining:
```
@__sancov_gen_.1 = private global [3 x i32] zeroinitializer, section
"__sancov_guards", comdat($_ZN3Foo10inline_fooEv)
define dso_local i32 @_ZN3Foo10public_fooEv(%struct.Foo* %0)
local_unnamed_addr #0 comdat align 2 {
call void @__sanitizer_cov_trace_pc_guard(i32* getelementptr inbounds ([3
x i32], [3 x i32]* @__sancov_gen_, i64 0, i64 0))
call void asm sideeffect "", ""() #4
; This is from inlining Foo::inline_foo into Foo::public_foo
call void @__sanitizer_cov_trace_pc_guard(i32* getelementptr inbounds ([3
x i32], [3 x i32...
2016 Dec 02
2
Libfuzzer depending on uninitialized debug info
...problem....
% cat dummy.c
void foo() {}
% clang -O -c -gmlt -fsanitize-coverage=func,trace-pc-guard -S dummy.c -o -
.LBB0_1:
.loc 1 1 0 # dummy.c:1:0
pushq %rax
.Lcfi0:
.cfi_def_cfa_offset 16
movl $.L__sancov_gen_, %edi
callq __sanitizer_cov_trace_pc_guard
% clang -O -c -gmlt -fsanitize-coverage=func,trace-pc-guard -S dummy.c -mllvm -use-unknown-locations -o -
.LBB0_1:
.loc 1 1 0 is_stmt 0 # dummy.c:1:0
pushq %rax
.loc 1 0 0 # :0:0
.Lcfi0:
.cfi_def_cfa_offset 16
.loc 1...
2016 Dec 02
2
Libfuzzer depending on uninitialized debug info
There is already –mllvm –use-unknown-locations which ought to trigger this. Don't need my patch.
--paulr
From: Kostya Serebryany [mailto:kcc at google.com]
Sent: Thursday, December 01, 2016 4:08 PM
To: Robinson, Paul
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] Libfuzzer depending on uninitialized debug info
On Thu, Dec 1, 2016 at 3:37 PM, Robinson, Paul <paul.robinson at
2016 Dec 03
0
Libfuzzer depending on uninitialized debug info
...-coverage=func,trace-pc-guard -S dummy.c
> -o -
>
> .LBB0_1:
>
> .loc 1 1 0 # dummy.c:1:0
>
> pushq %rax
>
> .Lcfi0:
>
> .cfi_def_cfa_offset 16
>
> movl $.L__sancov_gen_, %edi
>
> callq __sanitizer_cov_trace_pc_guard
>
>
>
> % clang -O -c -gmlt -fsanitize-coverage=func,trace-pc-guard -S dummy.c
> -mllvm -use-unknown-locations -o -
>
>
>
> .LBB0_1:
>
> .loc 1 1 0 is_stmt 0 # dummy.c:1:0
>
> pushq %rax
>
> * .loc 1 0 0...
2016 Dec 12
1
Libfuzzer depending on uninitialized debug info
...problem....
% cat dummy.c
void foo() {}
% clang -O -c -gmlt -fsanitize-coverage=func,trace-pc-guard -S dummy.c -o -
.LBB0_1:
.loc 1 1 0 # dummy.c:1:0
pushq %rax
.Lcfi0:
.cfi_def_cfa_offset 16
movl $.L__sancov_gen_, %edi
callq __sanitizer_cov_trace_pc_guard
% clang -O -c -gmlt -fsanitize-coverage=func,trace-pc-guard -S dummy.c -mllvm -use-unknown-locations -o -
.LBB0_1:
.loc 1 1 0 is_stmt 0 # dummy.c:1:0
pushq %rax
.loc 1 0 0 # :0:0
.Lcfi0:
.cfi_def_cfa_offset 16
.loc 1...