This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/55617] static constructors are not being instrumented correctly on darwin


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]