This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: call sigaction at the very start of __libc_start_main
- From: wuxi <wuxi at fudan dot edu dot cn>
- To: glibc-help <libc-help at sourceware dot org>
- Date: Thu, 09 Oct 2008 17:29:16 +0800
- Subject: Re: call sigaction at the very start of __libc_start_main
- References: <48EB2F6C.9080505@fudan.edu.cn>
wuxi wrote:
OK, I solve this problem. I discover that my new sigaction relies on the
thread pointer register (r13 on IA64) to do right things, so the correct
point to call the sigaction is after __libc_setup_tls. Now it works fine.
My new question is: how to make the system call to sigaction static, so
that I can hook my new signal handler at the very start of __libc_start_main
p.s. I found in __libc_setup_tls, it calls brk, which is a system call,
how should I do this to make sigaction static?
yours sincerely
Andrew