[PATCH] move __gmon_start__ call out of .init section
Roland McGrath
roland@redhat.com
Thu Nov 7 13:45:00 GMT 2002
> The patch below changes the ia64 initfini.c such that the call to
> __gmon_start__ is done via the .init_array section (if available).
> The idea here is to keep the .init/.fini empty (apart from
> prologue/epilogue) so as to ensure that the unwind info is always
> correct.
Can you elaborate a bit on the problem you are addressing here?
This seems wrong to me, in that the user program might put some code into
the .init section and then __gmon_start__ would come after it instead of
before.
More information about the Libc-hacker
mailing list