[prev in list] [next in list] [prev in thread] [next in thread] 

List:       glibc-help
Subject:    Register a signal handler in _dl_start
From:       wuxi () fudan ! edu ! cn (wuxi)
Date:       2008-09-01 10:33:00
Message-ID: 48BBC4D0.2030902 () fudan ! edu ! cn
[Download RAW message or body]

Hi

I am doing a research project on IA-64 and glibc-2.5. My goal is to 
instrument the program to enable whole-program taint tracking.

For that purpose, I need to register a special handler to handle SIGSEGV 
at the very start of any program, for I use unmapped area as the bitmap 
for taint tracking.

My problem is, when I hook signal handler at _dl_start (very start of 
the library, according to my study of code) to enable taint tracking for 
dynamic linker, the special signal handler seems not work - that is, 
when I run ld.so, it reports Segment fault directly without trapping 
into my signal handler. However, I dump the code and discover the hook 
function has been called before such access.

So, am I missing something here to register a signal handler for dynamic 
linker?

Thanks

yours sincerely

Andrew



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic