From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16281 invoked by alias); 29 Jan 2013 22:15:50 -0000 Received: (qmail 16140 invoked by uid 48); 29 Jan 2013 22:15:32 -0000 From: "howarth at nitro dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/55617] static constructors are not being instrumented correctly on darwin Date: Tue, 29 Jan 2013 22:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: howarth at nitro dot med.uc.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg02689.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55617 --- Comment #9 from Jack Howarth 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