LLVM Asan Code

asan.module_ctor

works the same as __attribute__((constructor)), insert into section .init_array

asan.module_dtor

works the same as __attribute__ ((destructor)), insert into section .fini_array

1
2
3
4
5
6
7
8
9
10
11
.section	.init_array.1,"aw",@init_array
.p2align 3
.quad asan.module_ctor

.section .init_array,"aw",@init_array
.p2align 3
.quad test

.section .fini_array.1,"aw",@fini_array
.p2align 3
.quad asan.module_dtor

But openark compiler doesn't support constructor and destructor.