This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/55617] static constructors are not being instrumented correctly on darwin
- From: "howarth at nitro dot med.uc.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Jan 2013 22:15:29 +0000
- Subject: [Bug sanitizer/55617] static constructors are not being instrumented correctly on darwin
- Auto-submitted: auto-generated
- References: <bug-55617-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55617
--- Comment #9 from Jack Howarth <howarth at nitro dot med.uc.edu> 2013-01-29 22:15:29 UTC ---
Is it significant that in the assembly, the .mod_term_func section section
(which captures the call to __asan_init) is emitted before the .mod_init_func
section?
LFE7:
.mod_term_func
.align 3
.quad __GLOBAL__sub_D_00099_0_cov.C
.text
__GLOBAL__sub_I_00099_1_cov.C:
LFB8:
pushq %rbp
LCFI18:
movq %rsp, %rbp
LCFI19:
call ___asan_init
movl $1, %esi
leaq LASAN0(%rip), %rdi
call ___asan_register_globals
popq %rbp
LCFI20:
ret
LFE8:
.mod_init_func
.align 3
.quad __GLOBAL__sub_I_00099_1_cov.C
.section
__TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support
EH_frame1:
.set L$set$0,LECIE1-LSCIE1
.long L$set$0
suggest that