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 #25 from Jack Howarth <howarth at nitro dot med.uc.edu> 2013-01-31 22:25:45 UTC ---
(In reply to comment #24)
> Suspect we need to use...
> 
> ctors[ctor_index].symbol = copy_rtx(symbol);
> 
> in machopic_asm_out_constructor although I am unclear on what need need to do
> to release the memory for this copy in at the end of finalize_ctors.

Perhaps we just need to add...

free(ctors[i].symbol);

after we assemble_integer with the ctors[i].symbol in finalize_ctors?


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