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: Thu, 31 Jan 2013 22:25:45 +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 #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?